mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 05:39:00 -05:00
fixed generic model merge for multi word model names
This commit is contained in:
@@ -896,7 +896,7 @@ export class GenericModel {
|
|||||||
throw new Error('Cannot merge on this model!')
|
throw new Error('Cannot merge on this model!')
|
||||||
} else {
|
} else {
|
||||||
let mergeRequestParams: any = {id: source.id, target: target.id}
|
let mergeRequestParams: any = {id: source.id, target: target.id}
|
||||||
mergeRequestParams[this.model.name.toLowerCase()] = {}
|
mergeRequestParams[this.model.name.charAt(0).toLowerCase() + this.model.name.slice(1)] = {}
|
||||||
|
|
||||||
return this.api[`api${this.model.name}MergeUpdate`](mergeRequestParams)
|
return this.api[`api${this.model.name}MergeUpdate`](mergeRequestParams)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user