Skip to content

Commit 02b0b92

Browse files
Merge pull request #396 from andrechristikan/development
update package
2 parents 1b6a2d5 + 768ce7e commit 02b0b92

File tree

8 files changed

+1302
-1271
lines changed

8 files changed

+1302
-1271
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ Describes which version.
7575

7676
| Name | Version |
7777
| ---------- | -------- |
78-
| NestJs | v9.2.x |
78+
| NestJs | v9.3.x |
7979
| NodeJs | v18.12.x |
8080
| Typescript | v4.9.x |
81-
| Mongoose | v6.8.x |
81+
| Mongoose | v7.0.x |
8282
| MongoDB | v6.0.x |
8383
| Yarn | v1.22.x |
8484
| NPM | v8.19.x |
8585
| Docker | v20.10.x |
8686
| Docker Compose | v2.6.x |
87-
| Swagger | v6.1.x |
87+
| Swagger | v6.2.x |
8888

8989
## Objective
9090

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ack-nestjs-boilerplate",
3-
"version": "4.4.2",
3+
"version": "4.4.3",
44
"description": "Ack NestJs Boilerplate",
55
"repository": {
66
"type": "git",
@@ -52,17 +52,17 @@
5252
"rollback": "yarn rollback:setting && yarn rollback:apikey && yarn rollback:user && yarn rollback:role && yarn rollback:permission"
5353
},
5454
"dependencies": {
55-
"@aws-sdk/client-s3": "^3.282.0",
55+
"@aws-sdk/client-s3": "^3.292.0",
5656
"@faker-js/faker": "^7.6.0",
5757
"@joi/date": "^2.1.0",
5858
"@nestjs/axios": "^2.0.0",
59-
"@nestjs/common": "^9.3.9",
59+
"@nestjs/common": "^9.3.10",
6060
"@nestjs/config": "^2.3.1",
61-
"@nestjs/core": "^9.3.9",
61+
"@nestjs/core": "^9.3.10",
6262
"@nestjs/jwt": "^10.0.2",
6363
"@nestjs/mongoose": "^9.2.1",
6464
"@nestjs/passport": "^9.0.3",
65-
"@nestjs/platform-express": "^9.3.9",
65+
"@nestjs/platform-express": "^9.3.10",
6666
"@nestjs/schedule": "^2.2.0",
6767
"@nestjs/swagger": "^6.2.1",
6868
"@nestjs/terminus": "^9.2.1",
@@ -74,22 +74,22 @@
7474
"crypto-js": "^4.1.1",
7575
"geolib": "^3.3.3",
7676
"helmet": "^6.0.1",
77-
"joi": "^17.8.3",
77+
"joi": "^17.8.4",
7878
"moment": "^2.29.4",
79-
"mongoose": "^7.0.0",
79+
"mongoose": "^7.0.2",
8080
"morgan": "^1.10.0",
81-
"nest-winston": "^1.9.0",
81+
"nest-winston": "^1.9.1",
8282
"nestjs-command": "^3.1.3",
8383
"nestjs-i18n": "^10.2.6",
8484
"passport": "^0.6.0",
8585
"passport-headerapikey": "^1.2.2",
8686
"passport-jwt": "^4.0.1",
8787
"reflect-metadata": "^0.1.13",
8888
"response-time": "^2.3.2",
89-
"rimraf": "^4.2.0",
89+
"rimraf": "^4.4.0",
9090
"rotating-file-stream": "^3.1.0",
9191
"rxjs": "^7.8.0",
92-
"ua-parser-js": "^1.0.33",
92+
"ua-parser-js": "^1.0.34",
9393
"winston": "^3.8.2",
9494
"winston-daily-rotate-file": "^4.7.1",
9595
"xlsx": "^0.18.5",
@@ -99,31 +99,31 @@
9999
"devDependencies": {
100100
"@nestjs/cli": "^9.2.0",
101101
"@nestjs/schematics": "^9.0.4",
102-
"@nestjs/testing": "^9.3.9",
102+
"@nestjs/testing": "^9.3.10",
103103
"@types/bcryptjs": "^2.4.2",
104104
"@types/bytes": "^3.1.1",
105105
"@types/cors": "^2.8.13",
106106
"@types/cron": "^2.0.0",
107107
"@types/crypto-js": "^4.1.1",
108108
"@types/express": "^4.17.17",
109-
"@types/jest": "^29.4.0",
109+
"@types/jest": "^29.4.4",
110110
"@types/lodash": "^4.14.191",
111111
"@types/morgan": "^1.9.4",
112112
"@types/ms": "^0.7.31",
113113
"@types/multer": "^1.4.7",
114-
"@types/node": "^18.14.5",
114+
"@types/node": "^18.15.3",
115115
"@types/passport-jwt": "^3.0.8",
116116
"@types/supertest": "^2.0.12",
117117
"@types/ua-parser-js": "^0.7.36",
118118
"@types/uuid": "^9.0.1",
119-
"@typescript-eslint/eslint-plugin": "^5.54.0",
120-
"@typescript-eslint/parser": "^5.54.0",
121-
"cspell": "^6.27.0",
122-
"eslint": "^8.35.0",
123-
"eslint-config-prettier": "^8.6.0",
119+
"@typescript-eslint/eslint-plugin": "^5.55.0",
120+
"@typescript-eslint/parser": "^5.55.0",
121+
"cspell": "^6.30.0",
122+
"eslint": "^8.36.0",
123+
"eslint-config-prettier": "^8.7.0",
124124
"eslint-plugin-import": "^2.27.5",
125125
"husky": "^8.0.3",
126-
"jest": "^29.4.3",
126+
"jest": "^29.5.0",
127127
"prettier": "^2.8.4",
128128
"supertest": "^6.3.3",
129129
"ts-jest": "^29.0.5",

src/common/database/abstracts/mongo/entities/database.mongo.object-id.entity.abstract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ export abstract class DatabaseMongoObjectIdEntityAbstract
2828

2929
@Prop({
3030
required: false,
31-
index: true,
31+
index: 'asc',
3232
type: Date,
3333
})
3434
[DATABASE_CREATED_AT_FIELD_NAME]?: Date;
3535

3636
@Prop({
3737
required: false,
38-
index: true,
38+
index: 'desc',
3939
type: Date,
4040
})
4141
[DATABASE_UPDATED_AT_FIELD_NAME]?: Date;

src/common/database/abstracts/mongo/entities/database.mongo.uuid.entity.abstract.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export abstract class DatabaseMongoUUIDEntityAbstract
2727

2828
@Prop({
2929
required: false,
30-
index: true,
30+
index: 'asc',
3131
type: Date,
3232
})
3333
[DATABASE_CREATED_AT_FIELD_NAME]?: Date;
3434

3535
@Prop({
3636
required: false,
37-
index: true,
37+
index: 'desc',
3838
type: Date,
3939
})
4040
[DATABASE_UPDATED_AT_FIELD_NAME]?: Date;

src/common/database/abstracts/mongo/repositories/database.mongo.object-id.repository.abstract.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
IDatabaseRawOptions,
2626
} from 'src/common/database/interfaces/database.interface';
2727
import { IDatabaseRepository } from 'src/common/database/interfaces/database.repository.interface';
28-
import { ENUM_PAGINATION_SORT_TYPE } from 'src/common/pagination/constants/pagination.enum.constant';
2928
import { IPaginationSort } from 'src/common/pagination/interfaces/pagination.interface';
3029

3130
export abstract class DatabaseMongoObjectIdRepositoryAbstract<T>
@@ -45,10 +44,10 @@ export abstract class DatabaseMongoObjectIdRepositoryAbstract<T>
4544
this._joinOnFind = options;
4645
}
4746

48-
private _convertSort(sort: IPaginationSort): Record<string, number> {
49-
const data: Record<string, number> = {};
47+
private _convertSort(sort: IPaginationSort): Record<string, string> {
48+
const data: Record<string, string> = {};
5049
Object.keys(sort).forEach((val) => {
51-
data[val] = sort[val] === ENUM_PAGINATION_SORT_TYPE.ASC ? 1 : -1;
50+
data[val] = sort[val].toLowerCase();
5251
});
5352

5453
return data;

src/common/database/abstracts/mongo/repositories/database.mongo.uuid.repository.abstract.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
IDatabaseRawOptions,
2525
} from 'src/common/database/interfaces/database.interface';
2626
import { IDatabaseRepository } from 'src/common/database/interfaces/database.repository.interface';
27-
import { ENUM_PAGINATION_SORT_TYPE } from 'src/common/pagination/constants/pagination.enum.constant';
2827
import { IPaginationSort } from 'src/common/pagination/interfaces/pagination.interface';
2928

3029
export abstract class DatabaseMongoUUIDRepositoryAbstract<T>
@@ -44,10 +43,10 @@ export abstract class DatabaseMongoUUIDRepositoryAbstract<T>
4443
this._joinOnFind = options;
4544
}
4645

47-
private _convertSort(sort: IPaginationSort): Record<string, number> {
48-
const data: Record<string, number> = {};
46+
private _convertSort(sort: IPaginationSort): Record<string, string> {
47+
const data: Record<string, string> = {};
4948
Object.keys(sort).forEach((val) => {
50-
data[val] = sort[val] === ENUM_PAGINATION_SORT_TYPE.ASC ? 1 : -1;
49+
data[val] = sort[val].toLowerCase();
5150
});
5251

5352
return data;

src/common/database/interfaces/database.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { IPaginationOptions } from 'src/common/pagination/interfaces/pagination.
44
// find one
55
export interface IDatabaseFindOneOptions<T = any>
66
extends Pick<IPaginationOptions, 'sort'> {
7-
select?: Record<string, number | string>;
7+
select?: Record<string, boolean | number>;
88
join?: boolean | PopulateOptions | PopulateOptions[];
99
session?: T;
1010
withDeleted?: boolean;

0 commit comments

Comments
 (0)