fix: retain only the 1st 32 bytes

This commit is contained in:
Derrick Hammer 2024-01-20 12:30:18 -05:00
parent bcf2998faa
commit 6bee380e75
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ func (s *StorageServiceImpl) GetHash(file io.Reader) ([]byte, error) {
hash := hasher.Sum(nil)
return hash, nil
return hash[:32], nil
}
func (s *StorageServiceImpl) CreateUpload(hash []byte, uploaderID uint, uploaderIP string, size uint64, protocol string) (*models.Upload, error) {