mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Sort workspace by name by created_at (#2214)
* fix: Sort workspace by name by created_at Fix bug where deleting workspaces with the same name returns the oldest deleted workspace
This commit is contained in:
@@ -3480,6 +3480,7 @@ WHERE
|
||||
owner_id = $1
|
||||
AND deleted = $2
|
||||
AND LOWER("name") = LOWER($3)
|
||||
ORDER BY created_at DESC
|
||||
`
|
||||
|
||||
type GetWorkspaceByOwnerIDAndNameParams struct {
|
||||
|
||||
Reference in New Issue
Block a user