We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a1b6b commit f550b54Copy full SHA for f550b54
server/services/index.ts
@@ -46,6 +46,8 @@ export const destroyUserServices = async (userId: UserInDatabase['_id'], drop =
46
47
delete serviceInstances[userId];
48
49
+ if (userServiceInstances === undefined || userServiceInstances === null) return;
50
+
51
return Promise.all(
52
Object.keys(userServiceInstances).map((key) => userServiceInstances[key as keyof ServiceInstances].destroy(drop)),
53
);
0 commit comments