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

Method UpdateOrganizationDeletedByID

coderd/database/dbauthz/dbauthz.go:7017–7025  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateOrganizationDeletedByIDParams)

Source from the content-addressed store, hash-verified

7015}
7016
7017func (q *querier) UpdateOrganizationDeletedByID(ctx context.Context, arg database.UpdateOrganizationDeletedByIDParams) error {
7018 deleteF := func(ctx context.Context, id uuid.UUID) error {
7019 return q.db.UpdateOrganizationDeletedByID(ctx, database.UpdateOrganizationDeletedByIDParams{
7020 ID: id,
7021 UpdatedAt: dbtime.Now(),
7022 })
7023 }
7024 return deleteQ(q.log, q.auth, q.db.GetOrganizationByID, deleteF)(ctx, arg.ID)
7025}
7026
7027func (q *querier) UpdateOrganizationWorkspaceSharingSettings(ctx context.Context, arg database.UpdateOrganizationWorkspaceSharingSettingsParams) (database.Organization, error) {
7028 fetch := func(ctx context.Context, arg database.UpdateOrganizationWorkspaceSharingSettingsParams) (database.Organization, error) {

Callers

nothing calls this directly

Calls 3

NowFunction · 0.92
deleteQFunction · 0.85

Tested by

no test coverage detected