@akanjs/document 0.9.50 → 0.9.51
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.
- package/cjs/src/database.js +1 -1
- package/esm/src/database.js +1 -1
- package/package.json +1 -1
package/cjs/src/database.js
CHANGED
|
@@ -278,7 +278,7 @@ const databaseModelOf = (database, model, redis, meili) => {
|
|
|
278
278
|
const query = queryFn(...args);
|
|
279
279
|
return this.__insight(query);
|
|
280
280
|
};
|
|
281
|
-
DatabaseModel.prototype[`query${(0, import_common.capitalize)(queryKey)}`] =
|
|
281
|
+
DatabaseModel.prototype[`query${(0, import_common.capitalize)(queryKey)}`] = function(...args) {
|
|
282
282
|
return queryFn(...args);
|
|
283
283
|
};
|
|
284
284
|
});
|
package/esm/src/database.js
CHANGED
|
@@ -256,7 +256,7 @@ const databaseModelOf = (database, model, redis, meili) => {
|
|
|
256
256
|
const query = queryFn(...args);
|
|
257
257
|
return this.__insight(query);
|
|
258
258
|
};
|
|
259
|
-
DatabaseModel.prototype[`query${capitalize(queryKey)}`] =
|
|
259
|
+
DatabaseModel.prototype[`query${capitalize(queryKey)}`] = function(...args) {
|
|
260
260
|
return queryFn(...args);
|
|
261
261
|
};
|
|
262
262
|
});
|