vona-module-test-vona 5.0.84 → 5.0.86
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/dist/service/post.d.ts +1 -1
- package/package.json +1 -1
- package/src/service/post.ts +1 -1
- package/test/instance.test.ts +1 -1
package/dist/service/post.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { IQueryParams } from 'vona-module-a-orm';
|
|
|
3
3
|
import { BeanBase } from 'vona';
|
|
4
4
|
import { ModelPost } from '../model/post.ts';
|
|
5
5
|
export declare class ServicePost extends BeanBase {
|
|
6
|
-
findMany(params
|
|
6
|
+
findMany(params?: IQueryParams<ModelPost>): Promise<import("vona-module-a-orm").TypeModelSelectAndCount<import("vona-module-test-vona").EntityPost, ModelPost, {
|
|
7
7
|
include: {
|
|
8
8
|
postContent: true;
|
|
9
9
|
};
|
package/package.json
CHANGED
package/src/service/post.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { ModelPostContent } from '../model/postContent.ts';
|
|
|
9
9
|
|
|
10
10
|
@Service()
|
|
11
11
|
export class ServicePost extends BeanBase {
|
|
12
|
-
async findMany(params
|
|
12
|
+
async findMany(params?: IQueryParams<ModelPost>) {
|
|
13
13
|
return await this.scope.model.post.selectAndCount(
|
|
14
14
|
{
|
|
15
15
|
...params,
|
package/test/instance.test.ts
CHANGED
|
@@ -10,7 +10,7 @@ describe('instance.test.ts', () => {
|
|
|
10
10
|
assert.equal(app.ctx.instanceName, 'shareTest');
|
|
11
11
|
assert.equal(app.ctx.instance.name, 'shareTest');
|
|
12
12
|
assert.equal(app.bean.database.current.clientName, defaultClientName);
|
|
13
|
-
assert.equal(['pg', 'mysql'].includes(app.bean.database.current.clientName), true);
|
|
13
|
+
assert.equal(['sqlite3', 'pg', 'mysql'].includes(app.bean.database.current.clientName), true);
|
|
14
14
|
}, { instanceName: 'shareTest' as any });
|
|
15
15
|
});
|
|
16
16
|
it('action:instance:isolateTest', async () => {
|