feat: handle note deletion from jetstream

This commit is contained in:
Julien Calixte
2026-02-10 17:43:00 +01:00
parent 958eb063dc
commit de92a554ee
2 changed files with 12 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ export const getNotesByDid = (did: string, cursor?: string, limit = 20) => {
};
};
export const deleteNote = ({ did, rkey }: { did: string; rkey: string }) => {
db.query("DELETE FROM note WHERE did = ? AND rkey = ?", [did, rkey]);
};
export const upsertNote = (note: Note) => {
db.query(
`