Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
HYP-2: package.json flow scriopts so it no longer local host
Browse files Browse the repository at this point in the history
  • Loading branch information
n3op2 committed Nov 27, 2023
1 parent e5770b4 commit 2957f05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test:unit": "NODE_ENV=test ./node_modules/.bin/mocha --config ./test/mocharc.json -r ts-node/register ./src/**/*.test.ts",
"db:migrate": "npx knex migrate:latest --knexfile src/lib/db/knexfile.ts",
"db:rollback": "npx knex migrate:rollback --knexfile src/lib/db/knexfile.ts",
"flows": "npx @digicatapult/dscp-process-management@latest create -h localhost -p 9944 -u //Alice -f ./processFlows.json"
"flows": "npx @digicatapult/dscp-process-management@latest create -h 127.0.0.1 -p 9944 -u //Alice -f ./processFlows.json"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class Database {
// generics methods
insert = async (
model: keyof Models<() => QueryBuilder>,
record: Record<string, string | number>
record: Record<string, string | number | UUID>
): Promise<keyof Entities> => {
const query = this.db()[model]

Expand Down
5 changes: 3 additions & 2 deletions test/integration/onchain/chain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ChainNode from '../../../src/lib/chainNode'
import { logger } from '../../../src/lib/logger'
import env from '../../../src/env'
import { pollTransactionState } from '../../helpers/poll'
import type { UUID } from '../../../src/models/strings'

describe('on-chain', function () {
this.timeout(120000)
Expand Down Expand Up @@ -43,11 +44,11 @@ describe('on-chain', function () {
const extrinsic = await node.prepareRunProcess({ process: invalidProcess, inputs: [], outputs: [] })
const [transaction] = await db.insert('transaction', {

Check failure on line 45 in test/integration/onchain/chain.test.ts

View workflow job for this annotation

GitHub Actions / Run lint

Insert `(`
api_type: 'certificate',
transaction_type: 'initialise',
transaction_type: 'creation',
local_id: '0f5af074-7d4d-40b4-86a5-17a2391303cb',
state: 'submitted',
hash: extrinsic.hash.toHex().slice(2),
})
}) as UUID

Check failure on line 51 in test/integration/onchain/chain.test.ts

View workflow job for this annotation

GitHub Actions / Run lint

Insert `)`

node.submitRunProcess(extrinsic, (state) => db.update('transaction', { id: transaction }, { state }))

Expand Down

0 comments on commit 2957f05

Please sign in to comment.