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

+1 -1
View File
@@ -551,7 +551,7 @@ router.post('/import-zip', zipUpload.single('file'), async (req, res, next) => {
if (row) ids.push(row.id);
}
if (ids.length === 0) {
const cl = db.prepare("SELECT id FROM workspaces WHERE slug = 'crowdlending'").get();
const cl = db.prepare("SELECT id FROM workspaces WHERE type = 'crowdlending'").get();
if (cl) ids.push(cl.id);
}
return ids;