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:
Florian Sylvain committed 2026-10-28 17:54:10 +01:00
1 parent efecdee200
commit 5d6f378fce
87 files changed
+696 -373

No files matched your search

+5 -2
View File
@@ -52,7 +52,10 @@ func (m *inviteFakeRepo) Create(i invite.Invite) (invite.Invite, error) {
return m.seed(i), nil
}
func (m *inviteFakeRepo) GetAll() []invite.Invite {
func (m *inviteFakeRepo) GetAll() ([]invite.Invite, error) {
if err := m.fail.trigger("GetAll"); err != nil {
return nil, err
}
ids := make([]uint32, 0, len(m.invites))
for id := range m.invites {
ids = append(ids, id)
@@ -62,7 +65,7 @@ func (m *inviteFakeRepo) GetAll() []invite.Invite {
for _, id := range ids {
result = append(result, m.invites[id])
}
return result
return result, nil
}
func (m *inviteFakeRepo) Delete(id uint32) error {