jp.db.schemas 1.0.28 → 1.0.29

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.
@@ -9,7 +9,7 @@ export declare class UsersRepository {
9
9
  findByYAId(yaId: string): Promise<User | null>;
10
10
  findByGoogleId(googleId: string): Promise<User | null>;
11
11
  findByFBId(fbId: string): Promise<User | null>;
12
- findByTGId(tgId: string): Promise<User | null>;
12
+ findByTGId(tgId: number): Promise<User | null>;
13
13
  findAndCount(userName: string, limit: number, skip: number): Promise<{
14
14
  items: Array<User>;
15
15
  total: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.db.schemas",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,7 +54,7 @@ export class UsersRepository {
54
54
  .exec();
55
55
  }
56
56
 
57
- async findByTGId (tgId: string): Promise<User | null> {
57
+ async findByTGId (tgId: number): Promise<User | null> {
58
58
  return this.userModel
59
59
  .findOne({ 'tgUser.id': tgId })
60
60
  .exec();