File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/handlers/expenditures Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,13 @@ import {
15
15
verbose ,
16
16
writeActionFromEvent ,
17
17
} from '~utils' ;
18
+ import { getBlockChainTimestampISODate } from '~utils/dates' ;
18
19
19
20
export const handleStreamingPaymentCreated : EventHandler = async (
20
21
event ,
21
22
listener ,
22
23
) => {
23
- const { blockNumber } = event ;
24
+ const { blockNumber, timestamp } = event ;
24
25
const { streamingPaymentId, agent : initiatorAddress } = event . args ;
25
26
const convertedNativeId = toNumber ( streamingPaymentId ) ;
26
27
const { colonyAddress } = listener as ExtensionEventListener ;
@@ -70,6 +71,7 @@ export const handleStreamingPaymentCreated: EventHandler = async (
70
71
amount : amount . toString ( ) ,
71
72
colonyId : colonyAddress ,
72
73
creatorAddress : initiatorAddress ,
74
+ createdAt : getBlockChainTimestampISODate ( timestamp ) ,
73
75
} ,
74
76
} ) ;
75
77
You can’t perform that action at this time.
0 commit comments