( ctx context.Context, db database.Store, chatID uuid.UUID, )
| 123 | } |
| 124 | |
| 125 | func getChatByIDAsSystem( |
| 126 | ctx context.Context, |
| 127 | db database.Store, |
| 128 | chatID uuid.UUID, |
| 129 | ) (database.Chat, error) { |
| 130 | // Test helper needs system scope to observe chatd-owned status changes. |
| 131 | //nolint:gocritic |
| 132 | return db.GetChatByID(dbauthz.AsSystemRestricted(ctx), chatID) |
| 133 | } |
no test coverage detected