mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
chore: generate
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user