mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -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!')
|
||||
} else {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user