From e0d534df47adb5fa24e0d2f1f18d2f60cc1c67f7 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Wed, 10 Apr 2024 17:28:43 +0200 Subject: [PATCH] revert latest change --- src/services/storage/applicationStorage.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/storage/applicationStorage.ts b/src/services/storage/applicationStorage.ts index 2b81dc9d..5e0d3f28 100644 --- a/src/services/storage/applicationStorage.ts +++ b/src/services/storage/applicationStorage.ts @@ -96,9 +96,9 @@ export default class { } const user = await entityManager.getRepository(ApplicationUser).findOne({ where: { nostr_public_key: nostrPub } }) if (user) { - if (user.application.app_id !== application.app_id) { - throw new Error("tried to access a user of application:" + user.application.app_id + "from application:" + application.app_id) - } + //if (user.application.app_id !== application.app_id) { + // throw new Error("tried to access a user of application:" + user.application.app_id + "from application:" + application.app_id) + //} return user } if (!application.allow_user_creation) {