cli: fix error due to non-updated auth.js

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle
2024-02-19 19:38:31 +07:00
parent d82eb099a5
commit 21c72aa994

View File

@@ -1,5 +1,5 @@
const { validateEvent, verifyEvent } = require("nostr-tools");
const { authorized_keys, private_keys } = require("./config");
const { authorized_keys, private_keys } = require(process.env.BOSTR_CONFIG_PATH || "./config");
module.exports = (authKey, data, ws, req) => {
if (!validateEvent(data) || !verifyEvent(data)) {