(ctx context.Context)
| 1862 | } |
| 1863 | |
| 1864 | func (q *querier) CountPendingNonActivePrebuilds(ctx context.Context) ([]database.CountPendingNonActivePrebuildsRow, error) { |
| 1865 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceWorkspace.All()); err != nil { |
| 1866 | return nil, err |
| 1867 | } |
| 1868 | return q.db.CountPendingNonActivePrebuilds(ctx) |
| 1869 | } |
| 1870 | |
| 1871 | func (q *querier) CountUnreadInboxNotificationsByUserID(ctx context.Context, userID uuid.UUID) (int64, error) { |
| 1872 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceInboxNotification.WithOwner(userID.String())); err != nil { |
nothing calls this directly
no test coverage detected