File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @kryptokrauts/event-processor-node-lib" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "description" : " Wrapper for ease listening on antelope blockchain based on @blockmatic/antelope-ship-reader" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ export class ShipReaderWrapper {
182182 type : action . name ,
183183 transaction_id : action . transaction_id ,
184184 data : result . msg ,
185+ global_sequence : action . global_sequence ,
185186 } ) ;
186187 await this . kafka_wrapper . sendEvent ( msg , action . name ) ;
187188 } else {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class KafkaWrapper {
4040 logger . debug ( `Fetching offset for contract topic ${ KAFKA_TOPIC_CONFIG . contract_topic } ` ) ;
4141
4242 // if offset for contract topic exists
43- if ( topicOffsets && topicOffsets . length === 1 && Number ( topicOffsets [ 0 ] ) > 0 ) {
43+ if ( topicOffsets && topicOffsets . length === 1 && Number ( topicOffsets [ 0 ] . offset ) > 0 ) {
4444 // get the current offset and decrease by 1
4545 const seekEntry : SeekEntry = topicOffsets [ 0 ] ;
4646 const offset = Number ( seekEntry . offset ) - 1 ;
You can’t perform that action at this time.
0 commit comments