Amélioration de la notion de workspace

This commit is contained in:
ocroguennec committed 2026-09-19 17:19:53 +02:00
1 parent 1d5737703b
commit c918de1e7d
11 files changed
+202 -58

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ router.get('/', (req, res, next) => {
`).all(Number(investissement_pe_id));
} else {
const workspaceId = resolveActiveWorkspaceId(req);
const ws = db.prepare('SELECT slug FROM workspaces WHERE id = ?').get(workspaceId);
if (!ws || ws.slug === 'crowdlending') {
const ws = db.prepare('SELECT type FROM workspaces WHERE id = ?').get(workspaceId);
if (!ws || ws.type === 'crowdlending') {
rows = db.prepare(`
SELECT f.*, c.nom AS compte_nom, i.nom_projet, p.nom AS plateforme_nom, inv.nom AS investisseur_nom
FROM frais_operations f