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

Method SoftDeleteWorkspaceByID

coderd/database/dbauthz/dbauthz.go:1339–1346  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

1337}
1338
1339func (q *querier) SoftDeleteWorkspaceByID(ctx context.Context, id uuid.UUID) error {
1340 return deleteQ(q.log, q.auth, q.db.GetWorkspaceByID, func(ctx context.Context, id uuid.UUID) error {
1341 return q.db.UpdateWorkspaceDeletedByID(ctx, database.UpdateWorkspaceDeletedByIDParams{
1342 ID: id,
1343 Deleted: true,
1344 })
1345 })(ctx, id)
1346}
1347
1348func authorizedTemplateVersionFromJob(ctx context.Context, q *querier, job database.ProvisionerJob) (database.TemplateVersion, error) {
1349 switch job.Type {

Callers

nothing calls this directly

Calls 2

deleteQFunction · 0.85

Tested by

no test coverage detected