Skip to content

Commit

Permalink
fix: more JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Dec 12, 2024
1 parent ebc6d81 commit 8fd61fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oada/libs/lib-arangodb/src/libs/putBodies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const collection = database.collection<{body: unknown}>(
*/
export async function savePutBody(body: string): Promise<{ _id: string }> {
// @ts-expect-error HACK: send body without parsing it
const { _id } = await collection.save(`"body":${body}`);
const { _id } = await collection.save(`{"body":${body}}`);
return { _id };
}

Expand Down

0 comments on commit 8fd61fb

Please sign in to comment.