Amélioration de la notion de workspace
This commit is contained in:
1 parent
1d5737703b
commit
c918de1e7d
11 files changed
+202
-58
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user