refac: stale test entries, failing web tests, Postgre backup bug, Hardcoded MySQL table count, Stale Postgre connection in test, own-scope visibility filter, GetAll ignoring its error, JSON tags in use-case types, 31 copies of DESKTOP_QUERY, ProfileView endpoint paths
This commit is contained in:
1 parent
efecdee200
commit
5d6f378fce
87 files changed
+696
-373
No files matched your search
@@ -24,7 +24,11 @@ func findUsableInvite(inviteRepository invite.Repository, hasher hash.Hasher, co
|
||||
return invite.Invite{}, invite.ErrInviteInvalid
|
||||
}
|
||||
|
||||
for _, candidate := range inviteRepository.GetAll() {
|
||||
invites, err := inviteRepository.GetAll()
|
||||
if err != nil {
|
||||
return invite.Invite{}, err
|
||||
}
|
||||
for _, candidate := range invites {
|
||||
if candidate.AcceptedAt != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user