(ctx context.Context, arg database.RemoveUserFromGroupsParams)
| 6366 | } |
| 6367 | |
| 6368 | func (q *querier) RemoveUserFromGroups(ctx context.Context, arg database.RemoveUserFromGroupsParams) ([]uuid.UUID, error) { |
| 6369 | // This is a system function to clear user groups in group sync. |
| 6370 | if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceSystem); err != nil { |
| 6371 | return nil, err |
| 6372 | } |
| 6373 | return q.db.RemoveUserFromGroups(ctx, arg) |
| 6374 | } |
| 6375 | |
| 6376 | func (q *querier) ReorderChatQueuedMessageToFront(ctx context.Context, arg database.ReorderChatQueuedMessageToFrontParams) (int64, error) { |
| 6377 | chat, err := q.db.GetChatByID(ctx, arg.ChatID) |
nothing calls this directly
no test coverage detected