feat: update

This commit is contained in:
Rogee
2025-05-23 21:43:49 +08:00
parent f13ef4388e
commit 409a2e8304
9 changed files with 21 additions and 126 deletions

View File

@@ -75,7 +75,7 @@ func (up *uploads) PostUploadedAction(ctx fiber.Ctx, body *PostUploadedForm) err
Hash: body.Md5,
Path: filepath.Join(UPLOAD_PATH, body.Md5+filepath.Ext(body.OriginalName)),
}
if err := model.MediasModel().Create(ctx.Context(), m); err != nil {
if err := m.Create(ctx.Context()); err != nil {
return err
}