diff --git a/server/account/src/index.ts b/server/account/src/index.ts index 09a1a36885..47b55d616c 100644 --- a/server/account/src/index.ts +++ b/server/account/src/index.ts @@ -924,7 +924,7 @@ function wrap (f: (db: Db, productId: string, ...args: any[]) => Promise): .then((result) => ({ id: request.id, result })) .catch((err) => { console.error(err) - if (err.status.code === platform.status.ExpiredLink) { + if (err.status?.code === platform.status.ExpiredLink) { return { error: new Status(Severity.ERROR, platform.status.ExpiredLink, {}) }