chore: removed unused deps, simplified if cond

This commit is contained in:
Hackntosh 2024-11-01 21:03:58 +00:00
parent f1808e35b3
commit 99541fd0f2
4 changed files with 1 additions and 4 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -45,7 +45,6 @@
"@nestjs/throttler": "6.2.1",
"@prisma/client": "^5.20.0",
"argon2": "^0.41.1",
"cache-manager": "^6.1.2",
"dotenv": "^16.4.5",
"dotenv-expand": "^11.0.6",
"file-type": "16.5.4",

View file

@ -21,7 +21,7 @@ import { UserModule } from "./users/users.module";
limit: 10,
ttl: seconds(60),
skipIf: () => {
return Configuration.NODE_ENV() === "dev" ? true : false;
return Configuration.NODE_ENV() === "dev";
},
},
],

View file

@ -31,8 +31,6 @@ export class KweeksService {
await this.kweekRepository.addAttachments(id, attachments);
console.log(id);
return await this.kweekRepository.findOne(id, false);
}