Fix jwt-token

This commit is contained in:
2025-09-13 15:34:25 +02:00
parent cd159239ed
commit cbb2586dca

View File

@@ -130,8 +130,8 @@ router.post('/logo-upload', authenticateToken, requirePermissions(['branding.edi
}); });
} }
// Get tenant // Get tenant by slug
const tenant = await Tenant.findByPk(tenantId); const tenant = await Tenant.findOne({ where: { slug: tenantId } });
if (!tenant) { if (!tenant) {
return res.status(404).json({ return res.status(404).json({
success: false, success: false,