Improve live admin
This commit is contained in:
parent
0f8d77b05f
commit
4f13efbab1
2 changed files with 66 additions and 15 deletions
|
|
@ -359,6 +359,7 @@ func SurveyWSAdmin(c *gin.Context) {
|
|||
if survey, err := getSurvey(sid); err != nil {
|
||||
log.Println("Unable to retrieve survey:", err)
|
||||
} else {
|
||||
survey.EndAvailability = time.Now()
|
||||
survey.Direct = nil
|
||||
_, err = survey.Update()
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue