mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 04:17:50 +00:00
Fix account error handler (#2795)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d770acb77a
commit
a221b19487
@ -924,7 +924,7 @@ function wrap (f: (db: Db, productId: string, ...args: any[]) => Promise<any>):
|
||||
.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, {})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user