fix: заменил все unknow на any
This commit is contained in:
1 parent
b865f50084
commit
20a969c829
4 files changed
+20
-20
No files matched your search
+4
-4
@@ -74,9 +74,9 @@ export abstract class Repo<T extends Entity<any>> {
|
||||
* @protected
|
||||
*/
|
||||
async _findByParams(
|
||||
parameters: Record<string, unknown>,
|
||||
parameters: Record<string, any>,
|
||||
limit?: number,
|
||||
order?: Record<string, unknown>
|
||||
order?: Record<string, any>
|
||||
): Promise<T[]> {
|
||||
const cursor = await this._storage.find(this.Name(), parameters)
|
||||
if (limit && limit > 0) await cursor.limit(limit)
|
||||
@@ -90,7 +90,7 @@ export abstract class Repo<T extends Entity<any>> {
|
||||
return list
|
||||
}
|
||||
|
||||
async findMany(parameters: Record<string, unknown>, order?: Record<string, unknown>): Promise<T[]> {
|
||||
async findMany(parameters: Record<string, any>, order?: Record<string, any>): Promise<T[]> {
|
||||
const cursor = await this._storage.find(this.Name(), parameters)
|
||||
if (this._offset > 0) await cursor.skip(this._offset)
|
||||
if (this._limit > 0) await cursor.limit(this._limit)
|
||||
@@ -110,7 +110,7 @@ export abstract class Repo<T extends Entity<any>> {
|
||||
return this
|
||||
}
|
||||
|
||||
async count(query?: Record<string, unknown>): Promise<number> {
|
||||
async count(query?: Record<string, any>): Promise<number> {
|
||||
return this._storage.count(this.Name(), query)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user