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

Method DeleteAllWebpushSubscriptions

coderd/database/querier.go:125–125  ·  view source on GitHub ↗

Deletes all existing webpush subscriptions. This should be called when the VAPID keypair is regenerated, as the old keypair will no longer be valid and all existing subscriptions will need to be recreated.

(ctx context.Context)

Source from the content-addressed store, hash-verified

123 // keypair will no longer be valid and all existing subscriptions will need to
124 // be recreated.
125 DeleteAllWebpushSubscriptions(ctx context.Context) error
126 DeleteApplicationConnectAPIKeysByUserID(ctx context.Context, userID uuid.UUID) error
127 // Deletes debug runs (and their cascaded steps) whose message IDs
128 // exceed the cutoff. The started_before bound prevents retried

Callers 4

RegenerateVAPIDKeysFunction · 0.65
TestNotificationsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestNotificationsMethod · 0.52