Skip to content

Commit

Permalink
Merge pull request #352 from privacy-scaling-explorations/fix/503-error
Browse files Browse the repository at this point in the history
Fix 503 server error
  • Loading branch information
vplasencia authored Jan 17, 2024
2 parents a78ab97 + ddf69ad commit a47a54a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions apps/api/src/app/groups/groups.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,18 +726,18 @@ export class GroupsService {
*/
/* istanbul ignore next */
private async _updateContractGroup(group: CachedGroup): Promise<void> {
const tx = await this.bandadaContract.updateGroups([
{
id: BigInt(group.id),
fingerprint: BigInt(group.root)
}
])
try {
await this.bandadaContract.updateGroups([
{
id: BigInt(group.id),
fingerprint: BigInt(group.root)
}
])

if (tx.status && tx.logs.length === 1) {
Logger.log(
`GroupsService: group '${group.id}' has been updated in the contract`
)
} else {
} catch {
Logger.error(`GroupsService: failed to update contract groups`)
}
}
Expand Down

0 comments on commit a47a54a

Please sign in to comment.