fix: fix tests

This commit is contained in:
monomarh
2025-11-16 21:45:13 +01:00
parent 9ff8f2f750
commit f11b3b24d7
2 changed files with 2198 additions and 2060 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,6 +20,9 @@ func (m *UserServiceMock) GetUserById(s string) (*models.User, error) {
func (m *UserServiceMock) GetUserByKey(s string, r bool) (*models.User, error) {
args := m.Called(s, r)
if args.Get(0) == nil {
return nil, args.Error(1)
}
return args.Get(0).(*models.User), args.Error(1)
}