From c84f39ad7ca1de46907dff7c77452c85a120a95c Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Mon, 25 Sep 2023 12:44:02 +0300 Subject: [PATCH] fix: project mode count even if no settings exist (#4825) --- src/lib/db/project-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index d2a88a0cc8..0d66d4e09a 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -566,7 +566,7 @@ class ProjectStore implements IProjectStore { ) .count(`${TABLE}.id as count`) .from(`${TABLE}`) - .join( + .leftJoin( `${SETTINGS_TABLE}`, `${TABLE}.id`, `${SETTINGS_TABLE}.project`,