Skip to content

Commit 233710e

Browse files
authored
Feat/blabsy group sync (#333)
* chore: blabsy group synchronization * chore: blabsy group synchronization
1 parent e45ebcb commit 233710e

File tree

1 file changed

+5
-2
lines changed
  • platforms/group-charter-manager-api/src/web3adapter/watchers

1 file changed

+5
-2
lines changed

platforms/group-charter-manager-api/src/web3adapter/watchers/subscriber.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,11 @@ console.log("hmm?")
416416
console.log("Waiting 20 seconds before syncing updated group data...");
417417
setTimeout(async () => {
418418
try {
419-
// Fetch the updated group entity to trigger handleChange
420-
const updatedGroup = await groupRepository.findOne({ where: { id: group.id } });
419+
// Fetch the updated group entity with relations to trigger handleChange
420+
const updatedGroup = await groupRepository.findOne({
421+
where: { id: group.id },
422+
relations: this.getRelationsForEntity("Group")
423+
});
421424
if (updatedGroup) {
422425
console.log("Triggering handleChange for updated group with ename after timeout");
423426
await this.handleChange(updatedGroup, "groups");

0 commit comments

Comments
 (0)