Fixed Tenant Error
This commit is contained in:
@@ -39,8 +39,7 @@ export default fp(async (server: FastifyInstance) => {
|
||||
|
||||
console.log("payload", payload);
|
||||
|
||||
if (!payload?.user_id || !payload.tenant_id) {
|
||||
console.log(payload)
|
||||
if (!payload?.user_id) {
|
||||
return reply.code(401).send({ error: "Invalid token" });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user