Skip to content

Commit

Permalink
Remove explicit number conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
muntaxir4 authored and rajdip-b committed Jul 29, 2024
1 parent 773a4f4 commit cb50ef6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/secret/secret.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { RedisClientType } from 'redis'
import { mockDeep } from 'jest-mock-extended'
import { UserService } from '../user/service/user.service'
import { UserModule } from '../user/user.module'
import { QueryTransformPipe } from '../common/query.transform.pipe'

describe('Secret Controller Tests', () => {
let app: NestFastifyApplication
Expand Down Expand Up @@ -81,6 +82,8 @@ describe('Secret Controller Tests', () => {
eventService = moduleRef.get(EventService)
userService = moduleRef.get(UserService)

app.useGlobalPipes(new QueryTransformPipe())

await app.init()
await app.getHttpAdapter().getInstance().ready()
})
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/secret/service/secret.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export class SecretService {
}
},
skip: page * limit,
take: Number(limit),
take: limit,
orderBy: {
[sort]: order
}
Expand Down Expand Up @@ -632,8 +632,8 @@ export class SecretService {
totalCount,
`/secret/${projectId}`,
{
page: Number(page),
limit: Number(limit),
page,
limit,
sort,
order,
search
Expand Down

0 comments on commit cb50ef6

Please sign in to comment.