diff --git a/README.md b/README.md index 9df1c45..bc92319 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ -# Modern Backend Development - WhereIsMyMotivation +# NestJS Backend Architecture Project [![Docker Compose CI](https://github.com/unusualcodeorg/wimm-node-app/actions/workflows/docker_compose.yml/badge.svg)](https://github.com/unusualcodeorg/wimm-node-app/actions/workflows/docker_compose.yml) +## WhereIsMyMotivation + ![Cover](.resources/documentations/assets/cover.jpg) This is a complete production ready project to learn modern techniques and approaches to build a performant and secure backend API services. It is designed for web apps, mobile apps, and other API services. ## Framework -- Nest +- NestJS - Express Node - Typescript - Mongoose diff --git a/src/auth/schemas/keystore.schema.ts b/src/auth/schemas/keystore.schema.ts index e9274db..56c82fa 100644 --- a/src/auth/schemas/keystore.schema.ts +++ b/src/auth/schemas/keystore.schema.ts @@ -27,4 +27,4 @@ export class Keystore { export const KeystoreSchema = SchemaFactory.createForClass(Keystore); -KeystoreSchema.index({ code: 1, status: 1 }); +KeystoreSchema.index({ client: 1, primaryKey: 1, secondaryKey: 1, status: 1 });