fix: cast to uint not uint64

This commit is contained in:
Derrick Hammer 2024-02-17 23:58:31 -05:00
parent 2ce26239da
commit 16ed748bfb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ func (t *TusHandler) worker() {
continue
}
uploaderID, ok := info.Context.Value(middleware.DEFAULT_AUTH_CONTEXT_KEY).(uint64)
uploaderID, ok := info.Context.Value(middleware.DEFAULT_AUTH_CONTEXT_KEY).(uint)
if !ok {
errorResponse.Body = "Missing user id in context"
info.Upload.StopUpload(errorResponse)