mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
with additional Testcase
This commit is contained in:
parent
9e355a8e63
commit
7b5ab0c1d6
@ -450,25 +450,25 @@ describe('create and send Transactions to DltConnector', () => {
|
||||
id: expect.any(Number),
|
||||
transactionId: transactions[0].id,
|
||||
messageId: '723e3fab62c5d3e2f62fd72ba4e622bcd53eff35262e3f3526327fe41bc51621',
|
||||
verified: false,
|
||||
verified: true,
|
||||
createdAt: expect.any(Date),
|
||||
verifiedAt: null,
|
||||
verifiedAt: expect.any(Date),
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(Number),
|
||||
transactionId: transactions[1].id,
|
||||
messageId: '723e3fab62c5d3e2f62fd72ba4e622bcd53eff35262e3f3526327fe41bc51621',
|
||||
verified: false,
|
||||
verified: true,
|
||||
createdAt: expect.any(Date),
|
||||
verifiedAt: null,
|
||||
verifiedAt: expect.any(Date),
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(Number),
|
||||
transactionId: transactions[2].id,
|
||||
messageId: '723e3fab62c5d3e2f62fd72ba4e622bcd53eff35262e3f3526327fe41bc51621',
|
||||
verified: false,
|
||||
verified: true,
|
||||
createdAt: expect.any(Date),
|
||||
verifiedAt: null,
|
||||
verifiedAt: expect.any(Date),
|
||||
}),
|
||||
]),
|
||||
)
|
||||
@ -553,16 +553,16 @@ describe('create and send Transactions to DltConnector', () => {
|
||||
transactionId: txSEND1to2.id,
|
||||
messageId: '723e3fab62c5d3e2f62fd72ba4e622bcd53eff35262e3f3526327fe41bc51621',
|
||||
verified: true,
|
||||
createdAt: new Date('12.01.2023 00:00:10'),
|
||||
verifiedAt: new Date('12.01.2023 00:01:10'),
|
||||
createdAt: expect.any(Date),
|
||||
verifiedAt: expect.any(Date),
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(Number),
|
||||
transactionId: txRECEIVE2From1.id,
|
||||
messageId: '723e3fab62c5d3e2f62fd72ba4e622bcd53eff35262e3f3526327fe41bc51621',
|
||||
verified: true,
|
||||
createdAt: new Date('12.01.2023 00:00:10'),
|
||||
verifiedAt: new Date('12.01.2023 00:01:10'),
|
||||
createdAt: expect.any(Date),
|
||||
verifiedAt: expect.any(Date),
|
||||
}),
|
||||
]),
|
||||
)
|
||||
|
||||
@ -40,6 +40,8 @@ export async function sendTransactionsToDltConnector(): Promise<void> {
|
||||
return
|
||||
}
|
||||
dltTx.messageId = dltMessageId.toString('hex')
|
||||
dltTx.verified = true
|
||||
dltTx.verifiedAt = new Date()
|
||||
await DltTransaction.save(dltTx)
|
||||
logger.info('store messageId=%s in dltTx=%d', dltTx.messageId, dltTx.id)
|
||||
} catch (e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user