Ignore schema attribute in PATCH payload.

Fixes #273.
This commit is contained in:
D. Berge
2023-09-24 12:14:20 +02:00
parent 8ad96d6f73
commit 8a2d526c50

View File

@@ -36,6 +36,9 @@ async function patch (projectId, payload, opts = {}) {
}
}
// We do not allow users to change the schema
delete payload.schema;
const dest = removeNulls(deepMerge(source, payload));
await modify(projectId, dest);
return dest;