mirror of
https://github.com/remnawave/node.git
synced 2026-10-22 02:41:19 +00:00
🚧 🚧
Co-authored-by: Ivan <84693047+exact01@users.noreply.github.com>
This commit is contained in:
parent
66b6992eea
commit
d239a142d7
3 changed files with 5 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "remnawave-node",
|
||||
"version": "0.2.5",
|
||||
"version": "0.2.6",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"private": true,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue