Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit20d1cb3

Browse files
committed
fix: Filter by deleted when querying workspaces
Fixes#4508.
1 parentabf14d9 commit20d1cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎coderd/database/queries/workspaces.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ WHERE
109109
-- Filter by owner_name
110110
AND CASE
111111
WHEN @owner_username ::text!='' THEN
112-
owner_id= (SELECT idFROM usersWHERElower(username)=lower(@owner_username))
112+
owner_id= (SELECT idFROM usersWHERElower(username)=lower(@owner_username)AND deleted= false)
113113
ELSE true
114114
END
115115
-- Filter by template_name
116116
-- There can be more than 1 template with the same name across organizations.
117117
-- Use the organization filter to restrict to 1 org if needed.
118118
AND CASE
119119
WHEN @template_name ::text!='' THEN
120-
template_id= ANY(SELECT idFROM templatesWHERElower(name)=lower(@template_name))
120+
template_id= ANY(SELECT idFROM templatesWHERElower(name)=lower(@template_name)AND deleted= false)
121121
ELSE true
122122
END
123123
-- Filter by template_ids

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp