File tree Expand file tree Collapse file tree 7 files changed +20
-20
lines changed Expand file tree Collapse file tree 7 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ export class BlockController extends BaseController<
325
325
@CsrfCheck ( true )
326
326
@Delete ( '' )
327
327
@HttpCode ( 204 )
328
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
329
- if ( ! ids || ids . length === 0 ) {
328
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
329
+ if ( ! ids ? .length ) {
330
330
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
331
331
}
332
332
const deleteResult = await this . blockService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -142,8 +142,8 @@ export class CategoryController extends BaseController<Category> {
142
142
@CsrfCheck ( true )
143
143
@Delete ( '' )
144
144
@HttpCode ( 204 )
145
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
146
- if ( ! ids || ids . length === 0 ) {
145
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
146
+ if ( ! ids ? .length ) {
147
147
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
148
148
}
149
149
const deleteResult = await this . categoryService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -149,8 +149,8 @@ export class ContextVarController extends BaseController<ContextVar> {
149
149
@CsrfCheck ( true )
150
150
@Delete ( '' )
151
151
@HttpCode ( 204 )
152
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
153
- if ( ! ids || ids . length === 0 ) {
152
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
153
+ if ( ! ids ? .length ) {
154
154
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
155
155
}
156
156
const deleteResult = await this . contextVarService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -136,8 +136,8 @@ export class LabelController extends BaseController<
136
136
@CsrfCheck ( true )
137
137
@Delete ( '' )
138
138
@HttpCode ( 204 )
139
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
140
- if ( ! ids || ids . length === 0 ) {
139
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
140
+ if ( ! ids ? .length ) {
141
141
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
142
142
}
143
143
const deleteResult = await this . labelService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -212,8 +212,8 @@ export class NlpEntityController extends BaseController<
212
212
@CsrfCheck ( true )
213
213
@Delete ( '' )
214
214
@HttpCode ( 204 )
215
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
216
- if ( ! ids || ids . length === 0 ) {
215
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
216
+ if ( ! ids ? .length ) {
217
217
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
218
218
}
219
219
const deleteResult = await this . nlpEntityService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -347,8 +347,8 @@ export class NlpSampleController extends BaseController<
347
347
@CsrfCheck ( true )
348
348
@Delete ( '' )
349
349
@HttpCode ( 204 )
350
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
351
- if ( ! ids || ids . length === 0 ) {
350
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
351
+ if ( ! ids ? .length ) {
352
352
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
353
353
}
354
354
const deleteResult = await this . nlpSampleService . deleteMany ( {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright © 2024 Hexastack. All rights reserved.
2
+ * Copyright © 2025 Hexastack. All rights reserved.
3
3
*
4
4
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
5
5
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -200,8 +200,8 @@ export class NlpValueController extends BaseController<
200
200
@CsrfCheck ( true )
201
201
@Delete ( '' )
202
202
@HttpCode ( 204 )
203
- async deleteMany ( @Body ( 'ids' ) ids : string [ ] ) : Promise < DeleteResult > {
204
- if ( ! ids || ids . length === 0 ) {
203
+ async deleteMany ( @Body ( 'ids' ) ids ? : string [ ] ) : Promise < DeleteResult > {
204
+ if ( ! ids ? .length ) {
205
205
throw new BadRequestException ( 'No IDs provided for deletion.' ) ;
206
206
}
207
207
const deleteResult = await this . nlpValueService . deleteMany ( {
You can’t perform that action at this time.
0 commit comments