Skip to content

Conversation

@mettix
Copy link

@mettix mettix commented Apr 19, 2019

commented the #if($api__org_id) statement.

Copy link

@Absoblogginlutely Absoblogginlutely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual problem here is the line slightly above this that gets the organization id. If you uncomment this line you always create a new record. This is fine if it's the first time you run the script, however the second time creates a second fixed asset.

Change
$api__org_id = $api__body.data.attributes.organization_id
to
$api__org_id = $api__body.attributes.organization_id
then no need to comment these lines out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants