mirror of
1
Fork 0

[bugfix] fix media create error not being checked (#1283)

This commit is contained in:
tobi 2022-12-21 17:52:07 +01:00 committed by GitHub
parent 6ebdc306ed
commit eabb906268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (m *Module) MediaCreatePOSTHandler(c *gin.Context) {
} }
apiAttachment, errWithCode := m.processor.MediaCreate(c.Request.Context(), authed, form) apiAttachment, errWithCode := m.processor.MediaCreate(c.Request.Context(), authed, form)
if err != nil { if errWithCode != nil {
api.ErrorHandler(c, errWithCode, m.processor.InstanceGet) api.ErrorHandler(c, errWithCode, m.processor.InstanceGet)
return return
} }