File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
platforms/group-charter-manager-api/src/web3adapter/watchers Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -412,6 +412,21 @@ console.log("hmm?")
412
412
413
413
console . log ( "Group updated with ename:" , evaultResult . w3id ) ;
414
414
415
+ // Wait 20 seconds before triggering handleChange to allow eVault to stabilize
416
+ console . log ( "Waiting 20 seconds before syncing updated group data..." ) ;
417
+ setTimeout ( async ( ) => {
418
+ try {
419
+ // Fetch the updated group entity to trigger handleChange
420
+ const updatedGroup = await groupRepository . findOne ( { where : { id : group . id } } ) ;
421
+ if ( updatedGroup ) {
422
+ console . log ( "Triggering handleChange for updated group with ename after timeout" ) ;
423
+ await this . handleChange ( updatedGroup , "groups" ) ;
424
+ }
425
+ } catch ( error ) {
426
+ console . error ( "Error triggering handleChange after timeout for group:" , group . id , error ) ;
427
+ }
428
+ } , 20000 ) ; // 20 seconds timeout
429
+
415
430
} catch ( error : any ) {
416
431
console . error ( "Error creating eVault for group:" , group . id , error ) ;
417
432
throw error ; // Re-throw to be caught by the caller
You can’t perform that action at this time.
0 commit comments