MCPcopy Index your code
hub / github.com/coder/coder / UpdateInactiveUsersToDormant

Method UpdateInactiveUsersToDormant

coderd/database/dbauthz/dbauthz.go:6922–6927  ·  view source on GitHub ↗
(ctx context.Context, lastSeenAfter database.UpdateInactiveUsersToDormantParams)

Source from the content-addressed store, hash-verified

6920}
6921
6922func (q *querier) UpdateInactiveUsersToDormant(ctx context.Context, lastSeenAfter database.UpdateInactiveUsersToDormantParams) ([]database.UpdateInactiveUsersToDormantRow, error) {
6923 if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceSystem); err != nil {
6924 return nil, err
6925 }
6926 return q.db.UpdateInactiveUsersToDormant(ctx, lastSeenAfter)
6927}
6928
6929func (q *querier) UpdateInboxNotificationReadStatus(ctx context.Context, args database.UpdateInboxNotificationReadStatusParams) error {
6930 fetchFunc := func(ctx context.Context, args database.UpdateInboxNotificationReadStatusParams) (database.InboxNotification, error) {

Callers

nothing calls this directly

Calls 2

authorizeContextMethod · 0.95

Tested by

no test coverage detected