refactor: don't use pointer receiver

This commit is contained in:
Derrick Hammer 2024-02-13 22:38:13 -05:00
parent f645499c7f
commit 93e7563bed
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ func (s AccountServiceDefault) updateAccountInfo(userId uint, info interface{})
return nil return nil
} }
func (s *AccountServiceDefault) exists(model interface{}, conditions map[string]interface{}) (bool, interface{}, error) { func (s AccountServiceDefault) exists(model interface{}, conditions map[string]interface{}) (bool, interface{}, error) {
// Conduct a query with the provided model and conditions // Conduct a query with the provided model and conditions
result := s.db.Model(model).Where(conditions).First(model) result := s.db.Model(model).Where(conditions).First(model)