@base44-preview/cli 0.0.45-pr.406.9e355c4 → 0.0.45-pr.406.b61b272
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 +4 -4
- package/dist/cli/index.js.map +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -249304,7 +249304,7 @@ var getNowISOTimestamp = () => {
|
|
|
249304
249304
|
class EntityValidationError extends Error {
|
|
249305
249305
|
context;
|
|
249306
249306
|
constructor(context) {
|
|
249307
|
-
super();
|
|
249307
|
+
super(context.message);
|
|
249308
249308
|
this.context = context;
|
|
249309
249309
|
}
|
|
249310
249310
|
}
|
|
@@ -249582,7 +249582,7 @@ var import_express3 = __toESM(require_express(), 1);
|
|
|
249582
249582
|
|
|
249583
249583
|
// src/cli/dev/dev-server/routes/entities/entities-user-router.ts
|
|
249584
249584
|
var import_express2 = __toESM(require_express(), 1);
|
|
249585
|
-
|
|
249585
|
+
function createUserRouter(db2, logger) {
|
|
249586
249586
|
const router = import_express2.Router({ mergeParams: true });
|
|
249587
249587
|
const parseBody = import_express2.json();
|
|
249588
249588
|
router.get("/:id", async (req, res) => {
|
|
@@ -249640,7 +249640,7 @@ async function createUserRouter(db2, logger) {
|
|
|
249640
249640
|
if (!updResult?.affectedDocuments) {
|
|
249641
249641
|
throw new Error(`Failed to update user`);
|
|
249642
249642
|
}
|
|
249643
|
-
res.json(updResult.affectedDocuments);
|
|
249643
|
+
res.json(stripInternalFields(updResult.affectedDocuments));
|
|
249644
249644
|
} catch (error48) {
|
|
249645
249645
|
if (error48 instanceof EntityValidationError) {
|
|
249646
249646
|
res.status(422).json(error48.context);
|
|
@@ -256201,4 +256201,4 @@ export {
|
|
|
256201
256201
|
CLIExitError
|
|
256202
256202
|
};
|
|
256203
256203
|
|
|
256204
|
-
//# debugId=
|
|
256204
|
+
//# debugId=1F83CA1A65BEF01964756E2164756E21
|