fix: use decodedHash.HashBytes()

This commit is contained in:
Derrick Hammer 2024-03-28 21:48:13 -04:00
parent fffe769ccf
commit 9254dc20c8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ func (t *TusHandler) worker() {
continue
}
_, err = t.CreateUpload(ctx, mapKey, info.Upload.ID, uploaderID, uploaderIP, t.storageProtocol.Name())
_, err = t.CreateUpload(ctx, decodedHash.HashBytes(), info.Upload.ID, uploaderID, uploaderIP, t.storageProtocol.Name())
mutex.(*sync.Mutex).Unlock()
if err != nil {
errorResponse.Body = "Could not create tus upload"