refactor: simplify parse ingredients code
This commit is contained in:
@@ -109,7 +109,7 @@ export async function getDocument(name: string): Promise<string | undefined> {
|
||||
export function updateDocument(name: string, content: string) {
|
||||
return db.update(documentTable).set({
|
||||
content,
|
||||
}).where(eq(documentTable.name, name));
|
||||
}).where(eq(documentTable.name, name)).run();
|
||||
}
|
||||
|
||||
export function transformDocument(input: string, cb: (r: Root) => Root) {
|
||||
|
||||
Reference in New Issue
Block a user