fix: cast to uint not uint64
This commit is contained in:
parent
2ce26239da
commit
16ed748bfb
|
@ -444,7 +444,7 @@ func (t *TusHandler) worker() {
|
||||||
continue
|
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 {
|
if !ok {
|
||||||
errorResponse.Body = "Missing user id in context"
|
errorResponse.Body = "Missing user id in context"
|
||||||
info.Upload.StopUpload(errorResponse)
|
info.Upload.StopUpload(errorResponse)
|
||||||
|
|
Loading…
Reference in New Issue