Skip to content

Commit db6ff3b

Browse files
committed
chore: update dependencies and clean up code
1 parent 977835e commit db6ff3b

File tree

14 files changed

+29
-76
lines changed

14 files changed

+29
-76
lines changed

libs/contract/constants/errors/errors.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,4 +724,9 @@ export const ERRORS = {
724724
message: 'This name is reserved by Remnawave. Please use a different name.',
725725
httpCode: 400,
726726
},
727+
UPDATE_CONFIG_PROFILE_ERROR: {
728+
code: 'A146',
729+
message: 'Update config profile error',
730+
httpCode: 500,
731+
},
727732
} as const;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './headers.contants';
1+
export * from './headers.constants';

libs/contract/models/infra-provider.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const InfraProviderSchema = z.object({
2121
}),
2222
billingNodes: z.array(
2323
z.object({
24-
nodeUuid: z.string(),
24+
nodeUuid: z.string().uuid(),
2525
name: z.string(),
2626
countryCode: z.string(),
2727
}),

libs/contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remnawave/backend-contract",
3-
"version": "2.0.0-alpha.35",
3+
"version": "2.0.0-alpha.36",
44
"public": true,
55
"license": "AGPL-3.0-only",
66
"description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@
5959
"@nestjs/axios": "4.0.1",
6060
"@nestjs/bullmq": "11.0.2",
6161
"@nestjs/cache-manager": "^3.0.1",
62-
"@nestjs/common": "11.1.4",
62+
"@nestjs/common": "11.1.5",
6363
"@nestjs/config": "4.0.2",
64-
"@nestjs/core": "11.1.4",
64+
"@nestjs/core": "11.1.5",
6565
"@nestjs/cqrs": "11.0.3",
6666
"@nestjs/event-emitter": "3.0.1",
6767
"@nestjs/jwt": "11.0.0",
6868
"@nestjs/passport": "11.0.5",
69-
"@nestjs/platform-express": "11.1.4",
69+
"@nestjs/platform-express": "11.1.5",
7070
"@nestjs/schedule": "6.0.0",
7171
"@nestjs/serve-static": "5.0.3",
7272
"@nestjs/swagger": "11.2.0",

src/modules/config-profiles/config-profile.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class ConfigProfileService {
252252
this.logger.error(error);
253253
return {
254254
isOk: false,
255-
...ERRORS.CREATE_CONFIG_PROFILE_ERROR,
255+
...ERRORS.UPDATE_CONFIG_PROFILE_ERROR,
256256
};
257257
}
258258
}

src/modules/hosts/repositories/hosts.repository.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -127,34 +127,6 @@ export class HostsRepository implements ICrud<HostsEntity> {
127127
}
128128

129129
public async findActiveHostsByUserUuid(userUuid: string): Promise<HostWithRawInbound[]> {
130-
// const hosts = await this.qb.kysely
131-
// .selectFrom('hosts')
132-
// .innerJoin(
133-
// 'internalSquadInbounds',
134-
// 'internalSquadInbounds.inboundUuid',
135-
// 'hosts.configProfileInboundUuid',
136-
// )
137-
// .innerJoin(
138-
// 'internalSquadMembers',
139-
// 'internalSquadMembers.internalSquadUuid',
140-
// 'internalSquadInbounds.internalSquadUuid',
141-
// )
142-
143-
// .innerJoin(
144-
// 'configProfileInbounds',
145-
// 'configProfileInbounds.uuid',
146-
// 'hosts.configProfileInboundUuid',
147-
// )
148-
149-
// .where('hosts.isDisabled', '=', false)
150-
// .where('internalSquadMembers.userUuid', '=', getKyselyUuid(userUuid))
151-
// .selectAll('hosts')
152-
// .select(['configProfileInbounds.rawInbound', 'configProfileInbounds.tag'])
153-
// .orderBy('hosts.viewPosition', 'asc')
154-
// .execute();
155-
156-
// TODO: remove later
157-
158130
const hosts = await this.qb.kysely
159131
.selectFrom('hosts')
160132
.distinct()

src/modules/infra-billing/repositories/infra-billing-node.repository.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,6 @@ export class InfraBillingNodeRepository implements ICrud<InfraBillingNodeEntity>
205205
}),
206206
);
207207

208-
// const x = results
209-
// .flat()
210-
// .sort(
211-
// (a, b) => new Date(a.nextBillingAt).getTime() - new Date(b.nextBillingAt).getTime(),
212-
// );
213-
214208
return results.flat().map((node) => new InfraBillingNodeNotificationEntity(node));
215209
}
216210
}

0 commit comments

Comments
 (0)