From f4dffc6d721fb12f81d51b3ccf2462061e3c55a2 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Thu, 27 Jul 2023 05:13:07 -0400 Subject: [PATCH] fix: fallback to postgres --- packages/backend/src/server/api/common/getters.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/common/getters.ts b/packages/backend/src/server/api/common/getters.ts index e4045fda81..b3259d2035 100644 --- a/packages/backend/src/server/api/common/getters.ts +++ b/packages/backend/src/server/api/common/getters.ts @@ -44,7 +44,10 @@ export async function getNote( note = candidate; } } - } else { + } + + // For legacy notes + if (!note) { const query = Notes.createQueryBuilder("note").where("note.id = :id", { id: noteId, });