Skip to content

Commit

Permalink
remove filtering object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-marky committed Sep 4, 2023
1 parent 9f662be commit 494232d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/process/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export const createProcessTransaction = async (
id: data[0].toHuman(),
version: data[1].toNumber(),
status: 'Enabled',
...verbose ? program : {},
program,
}

if(verbose == false)
{
delete newProcess.program
}

unsub()
Expand Down

0 comments on commit 494232d

Please sign in to comment.