jp.db.schemas 2.1.14 → 2.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,6 @@ import { Welcome, WelcomeDocument } from '..';
3
3
  export declare class WelcomeRepository {
4
4
  private welcomeModel;
5
5
  constructor(welcomeModel: Model<WelcomeDocument>);
6
- findWelcome(gameType: string): Promise<Welcome | null>;
6
+ findWelcome(game: string, text: string): Promise<Welcome | null>;
7
7
  }
8
8
  //# sourceMappingURL=welcome.repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"welcome.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/welcome.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAG9C,qBACa,iBAAiB;IACc,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;IAG9E,WAAW,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CAKhE"}
1
+ {"version":3,"file":"welcome.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/welcome.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAG9C,qBACa,iBAAiB;IACc,OAAO,CAAC,YAAY;gBAAZ,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC;IAG9E,WAAW,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CAKzE"}
@@ -21,9 +21,9 @@ let WelcomeRepository = class WelcomeRepository {
21
21
  constructor(welcomeModel) {
22
22
  this.welcomeModel = welcomeModel;
23
23
  }
24
- async findWelcome(gameType) {
24
+ async findWelcome(game, text) {
25
25
  return this.welcomeModel
26
- .findOne({ gameType })
26
+ .findOne({ game, text })
27
27
  .exec();
28
28
  }
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"welcome.repository.js","sourceRoot":"","sources":["../../src/repositories/welcome.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA8C;AAIvC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YAAgD,YAAoC;QAApC,iBAAY,GAAZ,YAAY,CAAwB;IACpF,CAAC;IAED,KAAK,CAAC,WAAW,CAAE,QAAgB;QAC/B,OAAO,IAAI,CAAC,YAAY;aACnB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;aACrB,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AATY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,WAAO,CAAC,IAAI,CAAC,CAAA;qCAAuB,gBAAK;GAD1D,iBAAiB,CAS7B"}
1
+ {"version":3,"file":"welcome.repository.js","sourceRoot":"","sources":["../../src/repositories/welcome.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,0BAA8C;AAIvC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC1B,YAAgD,YAAoC;QAApC,iBAAY,GAAZ,YAAY,CAAwB;IACpF,CAAC;IAED,KAAK,CAAC,WAAW,CAAE,IAAY,EAAE,IAAW;QACxC,OAAO,IAAI,CAAC,YAAY;aACnB,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aACvB,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AATY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,WAAO,CAAC,IAAI,CAAC,CAAA;qCAAuB,gBAAK;GAD1D,iBAAiB,CAS7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "2.1.14",
3
+ "version": "2.1.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,9 +10,9 @@ export class WelcomeRepository {
10
10
  constructor (@InjectModel(Welcome.name) private welcomeModel: Model<WelcomeDocument>) {
11
11
  }
12
12
 
13
- async findWelcome (gameType: string): Promise<Welcome | null> {
13
+ async findWelcome (game: string, text:string): Promise<Welcome | null> {
14
14
  return this.welcomeModel
15
- .findOne({ gameType })
15
+ .findOne({ game, text })
16
16
  .exec();
17
17
  }
18
18
  }