feat: need else on hash check

This commit is contained in:
Derrick Hammer 2024-01-24 19:10:19 -05:00
parent bf25d7bfda
commit bf15faf33f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -1299,9 +1299,10 @@ func (h *HttpHandler) DownloadFile(jc jape.Context) {
}
hashBytes = hashDecoded.HashBytes()
}
} else {
hashBytes = cidDecoded.Hash.HashBytes()
}
file := storage.NewFile(hashBytes, h.portal.Storage())