1
0

fix(image): json type of struct property (#1469)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1469
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni
2023-04-06 09:53:09 +00:00
committed by konrad
parent f76bb2b4a9
commit cca430810d
6 changed files with 8 additions and 8 deletions

View File

@ -1692,12 +1692,12 @@ func (t *Task) Delete(s *xorm.Session, a web.Auth) (err error) {
// @tags task
// @Accept json
// @Produce json
// @Param ID path int true "The task ID"
// @Param id path int true "The task ID"
// @Security JWTKeyAuth
// @Success 200 {object} models.Task "The task"
// @Failure 404 {object} models.Message "Task not found"
// @Failure 500 {object} models.Message "Internal error"
// @Router /tasks/{ID} [get]
// @Router /tasks/{id} [get]
func (t *Task) ReadOne(s *xorm.Session, a web.Auth) (err error) {
*t, err = GetTaskByIDSimple(s, t.ID)