Skip to content

Commit 2727384

Browse files
committed
feat(user): include uploader info in oss callback
1 parent 3a7bad5 commit 2727384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/user/internal/data/object_storage.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func (r *ObjectStorageRepo) Save(ctx context.Context, tx *gen.Client, u *model.O
2929
SetMimeType(u.MimeType).
3030
SetSize(u.Size).
3131
SetHash(u.Hash).
32+
SetUploadBy(u.UploadBy).
33+
SetUploadByName(u.UploadByName).
3234
Save(ctx)
3335
return &model.ObjectStorage{ObjectStorage: save}, err
3436
}

0 commit comments

Comments
 (0)