rpc-bpr: fix function calls

Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
dzdidi
2024-02-11 16:59:42 +00:00
parent 7b70091ad2
commit b09615b1cf

View File

@@ -1,15 +1,15 @@
const ACL = require('../acl') const ACL = require('../acl')
async getBPRHandler (publicKey, req) { async function getBPRHandler (publicKey, req) {
} }
async addBPRHandler (publicKey, req) { async function addBPRHandler (publicKey, req) {
} }
async delBPRHandler (publicKey, req) { async function delBPRHandler (publicKey, req) {
} }
async parseBPRRequest(publicKey, req) { async function parseBPRRequest(publicKey, req) {
if (!req) throw new Error('Request is empty') if (!req) throw new Error('Request is empty')
const request = JSON.parse(req.toString()) const request = JSON.parse(req.toString())
const userId = await this.authenticate(publicKey, request) const userId = await this.authenticate(publicKey, request)