Revert "fix: try to deref?"

This reverts commit a19af267cf.
This commit is contained in:
Derrick Hammer 2024-01-16 01:17:46 -05:00
parent a19af267cf
commit 0c5827ce0b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 4 deletions

View File

@ -109,10 +109,7 @@ func (s *StorageServiceImpl) FileExists(hash []byte) (bool, models.Upload) {
hashStr := hex.EncodeToString(hash)
var upload models.Upload
db := *s.portal.Db()
result := db.Model(&models.Upload{}).Where(&models.Upload{Hash: hashStr}).First(&upload)
result := s.portal.Db().Model(&models.Upload{}).Where(&models.Upload{Hash: hashStr}).First(&upload)
return result.RowsAffected > 0, upload
}