fix: use the userid context key

This commit is contained in:
Derrick Hammer 2024-01-17 09:05:39 -05:00
parent 1d019d905b
commit a41cdbf52c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func (h *HttpHandler) SmallFileUpload(jc jape.Context) {
Hash: hex.EncodeToString(hash),
Size: uint64(bufferSize),
Protocol: "s5",
UserID: 0,
UserID: uint(jc.Request.Context().Value(AuthUserIDKey).(uint64)),
})
if tx.Error != nil {