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
@@ -3,7 +3,11 @@ package useCases
|
||||
import "RenewCMS/internal/domain/invite"
|
||||
|
||||
func findManageableInvite(inviteRepository invite.Repository, id uint32) (invite.Invite, error) {
|
||||
for _, existing := range inviteRepository.GetAll() {
|
||||
invites, err := inviteRepository.GetAll()
|
||||
if err != nil {
|
||||
return invite.Invite{}, err
|
||||
}
|
||||
for _, existing := range invites {
|
||||
if existing.ID != id {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user