fix: fallback to postgres

This commit is contained in:
Namekuji 2023-07-27 05:13:07 -04:00
parent f68f20efe6
commit f4dffc6d72
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -44,7 +44,10 @@ export async function getNote(
note = candidate; note = candidate;
} }
} }
} else { }
// For legacy notes
if (!note) {
const query = Notes.createQueryBuilder("note").where("note.id = :id", { const query = Notes.createQueryBuilder("note").where("note.id = :id", {
id: noteId, id: noteId,
}); });