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

Method UpdateInboxNotificationReadStatus

coderd/database/dbauthz/dbauthz.go:6929–6935  ·  view source on GitHub ↗
(ctx context.Context, args database.UpdateInboxNotificationReadStatusParams)

Source from the content-addressed store, hash-verified

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) {
6931 return q.db.GetInboxNotificationByID(ctx, args.ID)
6932 }
6933
6934 return update(q.log, q.auth, fetchFunc, q.db.UpdateInboxNotificationReadStatus)(ctx, args)
6935}
6936
6937func (q *querier) UpdateMCPServerConfig(ctx context.Context, arg database.UpdateMCPServerConfigParams) (database.MCPServerConfig, error) {
6938 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceDeploymentConfig); err != nil {

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected