mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 06:04:25 +01:00
rpc-bpr: fix function calls
Signed-off-by: dzdidi <deniszalessky@gmail.com>
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
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')
|
||||
const request = JSON.parse(req.toString())
|
||||
const userId = await this.authenticate(publicKey, request)
|
||||
|
||||
Reference in New Issue
Block a user