qa: Auto-solve OK requests
This commit is contained in:
parent
8758effc99
commit
67f129ce4c
3 changed files with 8 additions and 5 deletions
|
@ -63,7 +63,7 @@ func importExerciceQA(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if qa, err := exercice.NewQAQuery(uq.Subject, uq.IdTeam, uq.User, uq.State); err != nil {
|
||||
if qa, err := exercice.NewQAQuery(uq.Subject, uq.IdTeam, uq.User, uq.State, nil); err != nil {
|
||||
log.Println("Unable to importExerciceQA:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "An error occurs during query creation."})
|
||||
return
|
||||
|
|
Reference in a new issue