Skip to content

Commit

Permalink
supporting old demo
Browse files Browse the repository at this point in the history
  • Loading branch information
julien51 committed Feb 4, 2024
1 parent 25060b1 commit 922fda9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const db = createKysely<Database>();
export const getMessage = async (
id: string
): Promise<Frame | null | undefined> => {
if (id !== "1" && id !== "0") {
// Support for the legacy demo (used ints for id!)
if (parseInt(id).toString() !== id) {
const frame = await db
.selectFrom("frames")
.select(["frame", "id"])
Expand Down

0 comments on commit 922fda9

Please sign in to comment.