mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:57:08 +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" };
|
||||
}
|
||||
|
||||
if (("id" in payload) && (projectId != payload.id)) {
|
||||
if (("id" in payload) && (projectId.toLowerCase() != payload.id.toLowerCase())) {
|
||||
throw {
|
||||
status: 422,
|
||||
message: "Project ID cannot be changed in this Dougal version"
|
||||
|
||||
Reference in New Issue
Block a user