shorter error

This commit is contained in:
hatim 2023-05-08 22:38:29 +02:00
parent 9e51af0861
commit 85543d316d

View file

@ -62,7 +62,7 @@ export default class {
async GetApplicationUser(appId: string, userIdentifier: string, entityManager = this.DB): Promise<ApplicationUser> {
const found = await this.GetApplicationUserIfExists(appId, userIdentifier, entityManager)
if (!found) {
throw new Error(`application user ${userIdentifier} not found`)
throw new Error(`application user not found`)
}
if (found.application.app_id !== appId) {