lint: format and lint

This commit is contained in:
Julien Calixte
2026-02-09 12:03:03 +01:00
parent 878847b5d2
commit ed157cb4df
5 changed files with 27 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
import { DB } from "https://deno.land/x/sqlite/mod.ts";
import type { Note } from "./note"
import type { Note } from "./note.ts";
export const db = new DB(Deno.env.get("SQLITE_PATH") ?? "notes.db");
export const upsertNote = async (note: Note) => {
export const upsertNote = (note: Note) => {
db.query(
`
INSERT INTO note (
@@ -30,4 +30,4 @@ export const upsertNote = async (note: Note) => {
note.rkey,
],
);
}
};