cgserver 6.9.474 → 6.9.475

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.
@@ -31,8 +31,8 @@ class MongoBaseService {
31
31
  let rs = await MongoManager_1.GMongoMgr.findOne(this._table, null, { id: id });
32
32
  return rs.one;
33
33
  }
34
- async get(proterty, where, sort) {
35
- let rs = await MongoManager_1.GMongoMgr.findOne(this._table, proterty, where, sort);
34
+ async get(proterty, where) {
35
+ let rs = await MongoManager_1.GMongoMgr.findOne(this._table, proterty, where);
36
36
  return rs.one;
37
37
  }
38
38
  async countDocuments(where, options) {
@@ -136,7 +136,7 @@ class MongoManager {
136
136
  * 获取单条消息
137
137
  * @param collection
138
138
  */
139
- async findOne(collection, property = {}, where = {}, sort) {
139
+ async findOne(collection, property = {}, where = {}) {
140
140
  this._convertWhere(where);
141
141
  let rs = { errcode: null, one: null };
142
142
  if (!this._mongo) {
@@ -17,7 +17,7 @@ export declare class MongoBaseService<T> {
17
17
  * @param id
18
18
  */
19
19
  getById(id: any): Promise<any>;
20
- get(proterty?: {}, where?: {}, sort?: {}): Promise<any>;
20
+ get(proterty?: {}, where?: {}): Promise<any>;
21
21
  countDocuments(where?: {}, options?: mongo.CountDocumentsOptions): Promise<number>;
22
22
  gets(property?: {}, where?: {}, sort?: {}, skip?: number, limit?: number): Promise<any[]>;
23
23
  getRandoms(num: number, proterty?: {}, where?: {}): Promise<any[]>;
@@ -56,7 +56,7 @@ declare class MongoManager {
56
56
  * 获取单条消息
57
57
  * @param collection
58
58
  */
59
- findOne(collection: string, property?: {}, where?: {}, sort?: {}): Promise<{
59
+ findOne(collection: string, property?: {}, where?: {}): Promise<{
60
60
  errcode: {
61
61
  id: number;
62
62
  des: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.9.474",
3
+ "version": "6.9.475",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",