(ctx context.Context, arg database.DeleteExternalAuthLinkParams)
| 2055 | } |
| 2056 | |
| 2057 | func (q *querier) DeleteExternalAuthLink(ctx context.Context, arg database.DeleteExternalAuthLinkParams) error { |
| 2058 | return fetchAndExec(q.log, q.auth, policy.ActionUpdatePersonal, func(ctx context.Context, arg database.DeleteExternalAuthLinkParams) (database.ExternalAuthLink, error) { |
| 2059 | //nolint:gosimple |
| 2060 | return q.db.GetExternalAuthLink(ctx, database.GetExternalAuthLinkParams{UserID: arg.UserID, ProviderID: arg.ProviderID}) |
| 2061 | }, q.db.DeleteExternalAuthLink)(ctx, arg) |
| 2062 | } |
| 2063 | |
| 2064 | func (q *querier) DeleteGroupAIBudget(ctx context.Context, groupID uuid.UUID) (database.GroupAiBudget, error) { |
| 2065 | // Removing a group's AI budget counts as updating the group. |
nothing calls this directly
no test coverage detected