Skip to content

Commit 2c81855

Browse files
Fix bind query for image embed.
1 parent d0abe63 commit 2c81855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/asset/asset_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (h mediaHandler) onAPISaveMedia() gin.HandlerFunc {
3939
return func(ctx *gin.Context) {
4040
var req domain.UserUploadedFile
4141

42-
if !httphelper.Bind(ctx, &req) {
42+
if err := ctx.Bind(&req); err != nil {
4343
httphelper.HandleErrBadRequest(ctx)
4444
slog.Warn("Failed to bind request", handlerName)
4545

0 commit comments

Comments
 (0)