chore: generate
This commit is contained in:
parent
5de2f241c6
commit
0b934e9516
1 changed files with 4 additions and 1 deletions
|
|
@ -150,7 +150,10 @@ const setBlockedBatch = async (input: { workspaceIDs: string[] }, isBlocked: boo
|
|||
for (let index = 0; index < ids.length; index += 500) {
|
||||
const chunk = ids.slice(index, index + 500)
|
||||
await tx.update(WorkspaceTable).set({ is_blocked: isBlocked }).where(inArray(WorkspaceTable.id, chunk))
|
||||
const rows = await tx.select({ id: WorkspaceTable.id }).from(WorkspaceTable).where(inArray(WorkspaceTable.id, chunk))
|
||||
const rows = await tx
|
||||
.select({ id: WorkspaceTable.id })
|
||||
.from(WorkspaceTable)
|
||||
.where(inArray(WorkspaceTable.id, chunk))
|
||||
for (const row of rows) applied.add(row.id)
|
||||
}
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue