fix count request in anstract relay

This commit is contained in:
hzrd149
2024-05-02 09:30:01 -05:00
committed by fiatjaf_
parent d0ae8b36a2
commit e217f751da

View File

@@ -259,7 +259,7 @@ export class AbstractRelay {
const ret = new Promise<number>((resolve, reject) => {
this.openCountRequests.set(id, { resolve, reject })
})
this.send('["COUNT","' + id + '",' + JSON.stringify(filters) + ']')
this.send('["COUNT","' + id + '",' + JSON.stringify(filters).substring(1))
return ret
}