We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5aeae commit 3c046b8Copy full SHA for 3c046b8
1 file changed
src/features/schema/helper/schemaHelpers.ts
@@ -1,6 +1,6 @@
1
import fs from "fs";
2
import path from "path";
3
-import { copy, fetchHandler } from "../../../helper.js";
+import { deepClone, fetchHandler } from "../../../helper.js";
4
import type { ConfigInterface } from "../../config/index.js";
5
import type { SchemaInterface } from "../index.js";
6
@@ -13,7 +13,7 @@ export function pickSchema(schema: SchemaInterface): SchemaInterface {
13
throw new Error("Schema is missing 'className' key.");
14
}
15
16
- schema = copy(schema);
+ schema = deepClone(schema);
17
18
if (schema.fields) {
19
delete schema.fields.objectId;
0 commit comments