From fbe09d7cd0f8ac18aaca55f79165315b668c5b7e Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 12 Sep 2022 11:37:16 +0800 Subject: [PATCH] chore: fix delete workspace_user --- store/workspace_user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/workspace_user.go b/store/workspace_user.go index 25a6a3a..ed323a6 100644 --- a/store/workspace_user.go +++ b/store/workspace_user.go @@ -162,9 +162,9 @@ func findWorkspaceUserList(ctx context.Context, tx *sql.Tx, find *api.WorkspaceU role, created_ts, updated_ts - FROM workspace + FROM workspace_user WHERE ` + strings.Join(where, " AND ") + ` - ORDER BY updated_ts DESC, created_ts DESC, row_status DESC + ORDER BY updated_ts DESC, created_ts DESC ` rows, err := tx.QueryContext(ctx, query, args...) if err != nil {