jp.db.schemas 1.0.39 → 1.0.40
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 { RoomDocument } from '../';
|
|
|
3
3
|
export declare class RoomsRepository {
|
|
4
4
|
private roomModel;
|
|
5
5
|
constructor(roomModel: Model<RoomDocument>);
|
|
6
|
-
findRooms(
|
|
6
|
+
findRooms(gameType: string): Promise<Array<RoomDocument>>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=rooms.repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAQ,YAAY,EAAE,MAAM,KAAK,CAAC;AAEzC,qBACa,eAAe;IACa,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;IAGrE,SAAS,CAAE,
|
|
1
|
+
{"version":3,"file":"rooms.repository.d.ts","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAQ,YAAY,EAAE,MAAM,KAAK,CAAC;AAEzC,qBACa,eAAe;IACa,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC;IAGrE,SAAS,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAKnE"}
|
|
@@ -21,9 +21,9 @@ let RoomsRepository = class RoomsRepository {
|
|
|
21
21
|
constructor(roomModel) {
|
|
22
22
|
this.roomModel = roomModel;
|
|
23
23
|
}
|
|
24
|
-
async findRooms(
|
|
24
|
+
async findRooms(gameType) {
|
|
25
25
|
return this.roomModel
|
|
26
|
-
.find({
|
|
26
|
+
.find({ gameType })
|
|
27
27
|
.exec();
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAyC;AAGlC,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YAA6C,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAC3E,CAAC;IAED,KAAK,CAAC,SAAS,CAAE,
|
|
1
|
+
{"version":3,"file":"rooms.repository.js","sourceRoot":"","sources":["../../src/repositories/rooms.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAA+C;AAC/C,uCAAiC;AAEjC,2BAAyC;AAGlC,IAAM,eAAe,GAArB,MAAM,eAAe;IACxB,YAA6C,SAA8B;QAA9B,cAAS,GAAT,SAAS,CAAqB;IAC3E,CAAC;IAED,KAAK,CAAC,SAAS,CAAE,QAAgB;QAC7B,OAAO,IAAI,CAAC,SAAS;aAChB,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;aAClB,IAAI,EAAE,CAAC;IAChB,CAAC;CACJ,CAAA;AATY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAEK,WAAA,IAAA,sBAAW,EAAC,QAAI,CAAC,IAAI,CAAC,CAAA;qCAAoB,gBAAK;GADpD,eAAe,CAS3B"}
|
package/package.json
CHANGED
|
@@ -9,9 +9,9 @@ export class RoomsRepository {
|
|
|
9
9
|
constructor (@InjectModel(Room.name) private roomModel: Model<RoomDocument>) {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
async findRooms (
|
|
12
|
+
async findRooms (gameType: string): Promise<Array<RoomDocument>> {
|
|
13
13
|
return this.roomModel
|
|
14
|
-
.find({
|
|
14
|
+
.find({ gameType })
|
|
15
15
|
.exec();
|
|
16
16
|
}
|
|
17
17
|
}
|