🚧 🚧

Co-authored-by: Ivan <84693047+exact01@users.noreply.github.com>
This commit is contained in:
kastov 2024-11-21 18:49:05 +03:00
parent 66b6992eea
commit d239a142d7
3 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@remnawave/node-contract",
"version": "0.2.5",
"version": "0.2.6",
"description": "A node-contract library for Remnawave Panel",
"main": "build/index.js",
"types": "build/index.d.ts",

View file

@ -1,6 +1,6 @@
{
"name": "remnawave-node",
"version": "0.2.5",
"version": "0.2.6",
"description": "",
"author": "",
"private": true,

View file

@ -88,12 +88,13 @@ export class HandlerService {
}
}
if (!response.every((res) => !res.data?.isAdded || !res.isOk)) {
if (response.every((res) => !res.isOk)) {
this.logger.error(JSON.stringify(response, null, 2));
return {
isOk: true,
response: new AddUserResponseModel(
false,
response.find((res) => !res.data?.isAdded || !res.isOk)?.message ?? null,
response.find((res) => !res.isOk)?.message ?? null,
),
};
}