Skip to content

Commit 53f7a5d

Browse files
committed
authzquery: update UpdateTemplateDeletedByID to call SoftDeleteTemplateByID
1 parent 6cc14b4 commit 53f7a5d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/authzquery/template.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ func (q *AuthzQuerier) SoftDeleteTemplateByID(ctx context.Context, id uuid.UUID)
260260

261261
// Deprecated: use SoftDeleteTemplateByID instead.
262262
func (q *AuthzQuerier) UpdateTemplateDeletedByID(ctx context.Context, arg database.UpdateTemplateDeletedByIDParams) error {
263-
// TODO delete me. This function is a placeholder for database.Store.
264-
return xerrors.Errorf("this function is deprecated, use SoftDeleteTemplateByID instead")
263+
return q.SoftDeleteTemplateByID(ctx, arg.ID)
265264
}
266265

267266
func (q *AuthzQuerier) UpdateTemplateMetaByID(ctx context.Context, arg database.UpdateTemplateMetaByIDParams) (database.Template, error) {

0 commit comments

Comments
 (0)