From 356a4b8e4f51fcd0d7e90ee8008d18ebd7bd9f19 Mon Sep 17 00:00:00 2001 From: Daniel Olojakpoke Date: Thu, 23 Mar 2023 02:58:39 +0100 Subject: [PATCH] fix: migrate stakeholder relation --- v1Tov2Migrations/migrate_stakeholder_relations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v1Tov2Migrations/migrate_stakeholder_relations.js b/v1Tov2Migrations/migrate_stakeholder_relations.js index 9b06189..09ad38a 100644 --- a/v1Tov2Migrations/migrate_stakeholder_relations.js +++ b/v1Tov2Migrations/migrate_stakeholder_relations.js @@ -47,8 +47,8 @@ async function migrate() { await trx.table('public.entity_relationship').insert({ parent_id: parent_entity_id, child_id: child_entity_id, - type, - role, + type: type || 'default', + role: role || 'default', created_at, });