mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:57:07 +00:00
Allow patching project name if no name is already set
This commit is contained in:
@@ -29,7 +29,7 @@ async function patch (projectId, payload, opts = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
if (("name" in payload) && (source.name != payload.name)) {
|
||||
if (("name" in payload) && source.name && (source.name != payload.name)) {
|
||||
throw {
|
||||
status: 422,
|
||||
message: "Project name cannot be changed in this Dougal version"
|
||||
|
||||
Reference in New Issue
Block a user