mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
🐛 401 for non res calls
This commit is contained in:
@ -26,7 +26,7 @@ export async function getUserFromToken(
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
res.status(401).end();
|
if (res) res.status(401).end();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user