@base44-preview/cli 0.0.35-pr.279.c8698e9 → 0.0.35-pr.279.f20437b

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 CHANGED
@@ -226314,13 +226314,13 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
226314
226314
  cursor3 = cursor3.sort(sortObj);
226315
226315
  }
226316
226316
  if (skip2) {
226317
- const skipNum = parseInt(skip2, 10);
226317
+ const skipNum = Number.parseInt(skip2, 10);
226318
226318
  if (!Number.isNaN(skipNum)) {
226319
226319
  cursor3 = cursor3.skip(skipNum);
226320
226320
  }
226321
226321
  }
226322
226322
  if (limit) {
226323
- const limitNum = parseInt(limit, 10);
226323
+ const limitNum = Number.parseInt(limit, 10);
226324
226324
  if (!Number.isNaN(limitNum)) {
226325
226325
  cursor3 = cursor3.limit(limitNum);
226326
226326
  }
@@ -226354,7 +226354,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
226354
226354
  };
226355
226355
  const inserted = stripInternalFields(await collection.insertAsync(record2));
226356
226356
  emit(appId, entityName, "create", inserted);
226357
- res.status(201).json(stripInternalFields(inserted));
226357
+ res.status(201).json(inserted);
226358
226358
  } catch (error48) {
226359
226359
  logger.error(`Error in POST /${entityName}:`, error48);
226360
226360
  res.status(500).json({ error: "Internal server error" });
@@ -226394,7 +226394,7 @@ function createEntityRoutes(db2, logger, remoteProxy, broadcast) {
226394
226394
  res.status(404).json({ error: `Entity "${entityName}" not found` });
226395
226395
  return;
226396
226396
  }
226397
- const { id: _id, created_date, ...body } = req.body;
226397
+ const { id: _id, created_date: _created_date, ...body } = req.body;
226398
226398
  try {
226399
226399
  const updateData = {
226400
226400
  ...body,
@@ -230899,4 +230899,4 @@ export {
230899
230899
  CLIExitError
230900
230900
  };
230901
230901
 
230902
- //# debugId=D773996C341F187664756E2164756E21
230902
+ //# debugId=633703126AE92AEB64756E2164756E21