mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:37:07 +00:00
Ignore case when patching configuration ID
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user