@base44-preview/cli 0.0.1-pr.13.b66c6b8 → 0.0.1-pr.13.c36964c
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/cli/index.js +6 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -507,7 +507,12 @@ function getAppClient() {
|
|
|
507
507
|
//#region src/core/resources/entity/api.ts
|
|
508
508
|
async function pushEntities(entities) {
|
|
509
509
|
const appClient = getAppClient();
|
|
510
|
-
const schemaSyncPayload =
|
|
510
|
+
const schemaSyncPayload = entities.reduce((acc, current) => {
|
|
511
|
+
return {
|
|
512
|
+
...acc,
|
|
513
|
+
[current.name]: current
|
|
514
|
+
};
|
|
515
|
+
}, {});
|
|
511
516
|
const response = await appClient.put("entities-schemas/sync-all", {
|
|
512
517
|
json: { entityNameToSchema: schemaSyncPayload },
|
|
513
518
|
throwHttpErrors: false
|
package/package.json
CHANGED