@fonderie/workspaces 6.0.5 → 6.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1141,7 +1141,7 @@ function roleController(store) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
1143
|
// src/controllers/invitation.controller.ts
|
|
1144
|
-
import { setApiResponse as setApiResponse6, HTTP as HTTP6 } from "@fonderie/core";
|
|
1144
|
+
import { setApiResponse as setApiResponse6, HTTP as HTTP6, background } from "@fonderie/core";
|
|
1145
1145
|
import { NOTIFICATION_EVENT } from "@fonderie/events";
|
|
1146
1146
|
|
|
1147
1147
|
// src/services/invitations.ts
|
|
@@ -1401,12 +1401,11 @@ function invitationController(store, ttl, bus) {
|
|
|
1401
1401
|
roleId: resolvedRoleId,
|
|
1402
1402
|
ttl
|
|
1403
1403
|
});
|
|
1404
|
-
bus?.emit(NOTIFICATION_EVENT, {
|
|
1404
|
+
await background(bus?.emit(NOTIFICATION_EVENT, {
|
|
1405
1405
|
type: MESSAGE_KEYS.workspaceInvitation,
|
|
1406
1406
|
recipient: { email: email2, phone: null, deviceToken: null },
|
|
1407
1407
|
data: { token: invitation.token, pin: invitation.pin }
|
|
1408
|
-
})
|
|
1409
|
-
});
|
|
1408
|
+
}));
|
|
1410
1409
|
return { invitationId: invitation.id, email: email2 };
|
|
1411
1410
|
})
|
|
1412
1411
|
);
|
|
@@ -1515,6 +1514,7 @@ function buildWorkspaceRoutes(store, config, bus) {
|
|
|
1515
1514
|
}
|
|
1516
1515
|
|
|
1517
1516
|
// src/module.ts
|
|
1517
|
+
import { background as background2 } from "@fonderie/core";
|
|
1518
1518
|
var AUTH_USER_REGISTERED = "fonderie.user.registered";
|
|
1519
1519
|
var WorkspacesModule = class {
|
|
1520
1520
|
constructor(store, config = {}, bus) {
|
|
@@ -1563,11 +1563,10 @@ var WorkspacesModule = class {
|
|
|
1563
1563
|
});
|
|
1564
1564
|
});
|
|
1565
1565
|
if (workspaceId) {
|
|
1566
|
-
this.bus?.emit(EVENT_KEYS.personalWorkspaceCreated, {
|
|
1566
|
+
await background2(this.bus?.emit(EVENT_KEYS.personalWorkspaceCreated, {
|
|
1567
1567
|
workspaceId,
|
|
1568
1568
|
userId: payload.userId
|
|
1569
|
-
})
|
|
1570
|
-
});
|
|
1569
|
+
}));
|
|
1571
1570
|
}
|
|
1572
1571
|
}
|
|
1573
1572
|
};
|