feat: handle note deletion from jetstream
This commit is contained in:
@@ -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(
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user