vona-cli-set-api 1.0.274 → 1.0.275

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.
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.158"
49
+ "vona": "^5.0.159"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@cabloy/lint": "^5.0.16",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-home-user",
3
3
  "type": "module",
4
- "version": "5.0.9",
4
+ "version": "5.0.10",
5
5
  "title": "home-user",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,
@@ -16,7 +16,7 @@ export class EventListenerEmailConfirmCallback
16
16
  return this.scope.locale.ConfirmationEmailExpired();
17
17
  }
18
18
  // activate
19
- const user = await this.bean.user.findOne({ id: data.userId });
19
+ const user = await this.bean.user.findOneById(data.userId);
20
20
  await this.bean.user.activate(user!);
21
21
  // ok
22
22
  return this.scope.locale.ConfirmationEmailSucceeded();
@@ -23,7 +23,7 @@ export class ServicePassportAdapter extends BeanBase implements IPassportAdapter
23
23
  }
24
24
 
25
25
  async deserialize(payloadData: IPayloadData): Promise<IPassport | undefined> {
26
- const user = await this.bean.user.findOne({ id: payloadData.userId });
26
+ const user = await this.bean.user.findOneById(payloadData.userId);
27
27
  if (!user) return;
28
28
  const auth = await this.bean.auth.findOne({ id: payloadData.authId });
29
29
  if (!auth) return;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-suite-a-home",
3
3
  "type": "module",
4
- "version": "5.0.10",
4
+ "version": "5.0.11",
5
5
  "title": "a-home",
6
6
  "description": "",
7
7
  "author": "zhennann",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.274",
4
+ "version": "1.0.275",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"