fix code at commit 649c425

Signed-off-by: Yonle <yonle@lecturify.net>
This commit is contained in:
Yonle 2024-05-13 07:09:17 +07:00
parent 4848e1d0a7
commit 396bd3f7bb
2 changed files with 3 additions and 2 deletions

View File

@ -28,8 +28,8 @@ if (!config.relays?.length) (async () => {
}
});
const text = await request.text();
relays = text.match(/(w{1,2}s)s?:\/\/.+/g);
const text = await request.body.text();
config.relays = text.match(/(w{1,2}s)s?:\/\/.+/g);
})();
if (

View File

@ -28,6 +28,7 @@
"homepage": "https://github.com/Yonle/bostr#readme",
"dependencies": {
"nostr-tools": "^2.5.2",
"undici": "^6.16.1",
"ws": "^8.17.0"
},
"optionalDependencies": {