Ignore case when patching configuration ID

This commit is contained in:
D. Berge
2023-09-13 16:13:12 +02:00
parent 1302a31b3d
commit 6707cda75e

View File

@@ -22,7 +22,7 @@ async function patch (projectId, payload, opts = {}) {
throw { status: 404, message: "Not found" }; throw { status: 404, message: "Not found" };
} }
if (("id" in payload) && (projectId != payload.id)) { if (("id" in payload) && (projectId.toLowerCase() != payload.id.toLowerCase())) {
throw { throw {
status: 422, status: 422,
message: "Project ID cannot be changed in this Dougal version" message: "Project ID cannot be changed in this Dougal version"