From 74f06d2d0e08a807661ecfceaebf18834d6ebabe Mon Sep 17 00:00:00 2001 From: black Date: Fri, 11 Aug 2023 13:54:36 +0800 Subject: [PATCH] fix: fix func findAndCountAll input error bug --- src/core/baseMapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/baseMapping.ts b/src/core/baseMapping.ts index 635d1ee..463a13c 100644 --- a/src/core/baseMapping.ts +++ b/src/core/baseMapping.ts @@ -91,8 +91,8 @@ export abstract class BaseMapping { } async findAndCountAll( - limit: number, page: number, + limit: number, where = {} ): Promise<{ rows: T[];