Skip to content

Commit 0b934e9

Browse files
chore: generate
1 parent 5de2f24 commit 0b934e9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/console/core/src/workspace.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ const setBlockedBatch = async (input: { workspaceIDs: string[] }, isBlocked: boo
150150
for (let index = 0; index < ids.length; index += 500) {
151151
const chunk = ids.slice(index, index + 500)
152152
await tx.update(WorkspaceTable).set({ is_blocked: isBlocked }).where(inArray(WorkspaceTable.id, chunk))
153-
const rows = await tx.select({ id: WorkspaceTable.id }).from(WorkspaceTable).where(inArray(WorkspaceTable.id, chunk))
153+
const rows = await tx
154+
.select({ id: WorkspaceTable.id })
155+
.from(WorkspaceTable)
156+
.where(inArray(WorkspaceTable.id, chunk))
154157
for (const row of rows) applied.add(row.id)
155158
}
156159
return {

0 commit comments

Comments
 (0)