mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: call relay.remove
This commit is contained in:
parent
ab5124e851
commit
17929bb655
1 changed files with 8 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ export class DittoAPIStore implements NRelay {
|
|||
})();
|
||||
}
|
||||
|
||||
remove(filters: NostrFilter[], opts?: { signal?: AbortSignal }): Promise<void> {
|
||||
const { relay } = this.opts;
|
||||
if (!relay.remove) {
|
||||
return Promise.reject(new Error("Method not 'remove' not available."));
|
||||
}
|
||||
return relay.remove(filters, opts);
|
||||
}
|
||||
|
||||
async close(): Promise<void> {
|
||||
const { pool, relay } = this.opts;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue