Skip to content
Snippets Groups Projects
Commit 1c7a878e authored by Nils Brinckmann's avatar Nils Brinckmann
Browse files

Added default value to include the relationships (false)

parent 8d7281e4
No related branches found
No related tags found
1 merge request!115Fixed payloads for device & platform save.
......@@ -179,7 +179,7 @@ export class DeviceSerializer {
return result
}
convertModelToJsonApiData (device: Device, includeRelationships: boolean): IJsonApiEntityWithOptionalId {
convertModelToJsonApiData (device: Device, includeRelationships: boolean = false): IJsonApiEntityWithOptionalId {
const data: IJsonApiEntityWithOptionalId = {
type: 'device',
attributes: {
......
......@@ -145,7 +145,7 @@ export class PlatformSerializer {
return result
}
convertModelToJsonApiData (platform: Platform, includeRelationships: boolean): IJsonApiEntityWithOptionalId {
convertModelToJsonApiData (platform: Platform, includeRelationships: boolean = false): IJsonApiEntityWithOptionalId {
const data: IJsonApiEntityWithOptionalId = {
type: 'platform',
attributes: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment