Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sipec committed Mar 12, 2024
1 parent 010dbf4 commit 2027dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/scripts/merge-groups.ts
Expand Up @@ -42,7 +42,7 @@ export async function mergeGroups(
(row) => row.contract_id
)

// if (contracts.length > 10) {
// if (contracts.length > 100) {
// throw new Error(
// `found ${contracts.length} contracts in group ${from}. are you sure?`
// )
Expand All @@ -66,7 +66,7 @@ export async function mergeGroups(
await updateGroupLinksOnContracts(pg, firestore, contracts)

console.log('recalculating group embedding')
upsertGroupEmbedding(pg, to)
await upsertGroupEmbedding(pg, to)
} else {
console.log('no contracts to re-tag')
}
Expand Down

0 comments on commit 2027dd4

Please sign in to comment.