Skip to content

Commit d2d89d4

Browse files
committed
updates
1 parent 7c623ed commit d2d89d4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

components/dolibarr/actions/create-thirdparty/create-thirdparty.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ export default {
2626
description: "The phone number of the third party",
2727
optional: true,
2828
},
29-
steetAddress: {
29+
streetAddress: {
3030
type: "string",
3131
label: "Street Address",
32-
description: "The street address of the user",
32+
description: "The street address of the third party",
3333
optional: true,
3434
},
3535
zip: {
3636
type: "string",
3737
label: "Zip",
38-
description: "The zip code of the user",
38+
description: "The zip code of the third party",
3939
optional: true,
4040
},
4141
town: {
4242
type: "string",
4343
label: "Town",
44-
description: "The city or town of the user",
44+
description: "The city or town of the third party",
4545
optional: true,
4646
},
4747
additionalProperties: {
@@ -58,13 +58,13 @@ export default {
5858
name: this.name,
5959
email: this.email,
6060
phone: this.phone,
61-
address: this.steetAddress,
61+
address: this.streetAddress,
6262
zip: this.zip,
6363
town: this.town,
6464
...parseObject(this.additionalProperties),
6565
},
6666
});
67-
$.export("$summary", `Successfully created third party ${response}`);
67+
$.export("$summary", `Successfully created third party with ID${response}`);
6868
return response;
6969
},
7070
};

components/dolibarr/actions/create-user/create-user.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default {
5454
description: "Whether the user is an administrator",
5555
optional: true,
5656
},
57-
steetAddress: {
57+
streetAddress: {
5858
type: "string",
5959
label: "Street Address",
6060
description: "The street address of the user",
@@ -93,7 +93,7 @@ export default {
9393
admin: this.isAdmin
9494
? 1
9595
: 0,
96-
address: this.steetAddress,
96+
address: this.streetAddress,
9797
zip: this.zip,
9898
town: this.town,
9999
...parseObject(this.additionalProperties),

components/dolibarr/dolibarr.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default {
159159
return;
160160
}
161161
}
162-
total = results.total;
162+
total = results?.length;
163163
} while (total === params.limit);
164164
},
165165
},

0 commit comments

Comments
 (0)