From 1702f2998789bbb1785d3e04b11dbaa5b16f03d8 Mon Sep 17 00:00:00 2001 From: counterweight Date: Wed, 5 Mar 2025 16:40:54 +0100 Subject: [PATCH] typo --- src/routes/apiRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/apiRoutes.js b/src/routes/apiRoutes.js index 6979b53..9ff1513 100644 --- a/src/routes/apiRoutes.js +++ b/src/routes/apiRoutes.js @@ -15,7 +15,7 @@ class ApiRoutesProvider { signUpChallenge = await this.services.invitesService.createSignUpChallenge(inviteUuid); } catch (error) { - if (error instanceof this.services.NotFoundError) { + if (error instanceof this.errors.NotFoundError) { return res.status(404).json({ success: false, message: 'Could not find invite with that id.',