Skip to content

Commit 73418bf

Browse files
committed
chore: fix group-provision
1 parent 3bbcc9e commit 73418bf

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class PostgresSubscriber implements EntitySubscriberInterface {
180180
console.log("✅ Full entity loaded:", { id: fullEntity.id, tableName: event.metadata.tableName });
181181

182182
// Check if this is a Group entity and if charter was just added (not updated)
183-
if (entityName === "Group" && fullEntity.charter && fullEntity.charter.trim() !== "") {
183+
if (entityName.toLocaleLowerCase() === "group" && fullEntity.charter && fullEntity.charter.trim() !== "") {
184184
// Check if this group doesn't have an ename yet (meaning eVault wasn't created)
185185
if (!fullEntity.ename) {
186186
console.log("Group just got chartered, spinning up eVault for group:", fullEntity.id);

0 commit comments

Comments
 (0)