@@ -190,15 +190,16 @@ private Source<EventEnvelope, NotUsed> EventsByPersistenceIdSource(
190
190
=> _readJournalDao
191
191
. MessagesWithBatch ( persistenceId , fromSequenceNr , toSequenceNr , _readJournalConfig . MaxBufferSize , refreshInterval )
192
192
. SelectAsync ( 1 , representationAndOrdering => Task . FromResult ( representationAndOrdering . Get ( ) ) )
193
- . SelectMany ( r => AdaptEvents ( r . Representation ) . Select ( _ => new { representation = r . Representation , ordering = r . Ordering } ) )
193
+ . SelectMany ( r => AdaptEvents ( r . Representation ) . Select ( _ => new { representation = r . Representation , ordering = r . Ordering , tags = r . Tags } ) )
194
194
. Select (
195
195
r =>
196
196
new EventEnvelope (
197
197
offset : new Sequence ( r . ordering ) ,
198
198
persistenceId : r . representation . PersistenceId ,
199
199
sequenceNr : r . representation . SequenceNr ,
200
200
@event : r . representation . Payload ,
201
- timestamp : r . representation . Timestamp ) ) ;
201
+ timestamp : r . representation . Timestamp ,
202
+ tags : r . tags ) ) ;
202
203
203
204
private Source < EventEnvelope , NotUsed > CurrentJournalEvents ( long offset , long max , MaxOrderingId latestOrdering )
204
205
{
@@ -211,7 +212,7 @@ private Source<EventEnvelope, NotUsed> CurrentJournalEvents(long offset, long ma
211
212
. SelectMany (
212
213
a =>
213
214
{
214
- var ( representation , _ , ordering ) = a ;
215
+ var ( representation , tags , ordering ) = a ;
215
216
return AdaptEvents ( representation )
216
217
. Select (
217
218
r =>
@@ -220,7 +221,8 @@ private Source<EventEnvelope, NotUsed> CurrentJournalEvents(long offset, long ma
220
221
persistenceId : r . PersistenceId ,
221
222
sequenceNr : r . SequenceNr ,
222
223
@event : r . Payload ,
223
- timestamp : r . Timestamp ) ) ;
224
+ timestamp : r . Timestamp ,
225
+ tags : tags ) ) ;
224
226
} ) ;
225
227
}
226
228
@@ -239,7 +241,7 @@ private Source<EventEnvelope, NotUsed> CurrentJournalEventsByTag(
239
241
. SelectMany (
240
242
a =>
241
243
{
242
- var ( representation , _ , ordering ) = a ;
244
+ var ( representation , tags , ordering ) = a ;
243
245
return AdaptEvents ( representation )
244
246
. Select (
245
247
r =>
@@ -248,7 +250,8 @@ private Source<EventEnvelope, NotUsed> CurrentJournalEventsByTag(
248
250
persistenceId : r . PersistenceId ,
249
251
sequenceNr : r . SequenceNr ,
250
252
@event : r . Payload ,
251
- timestamp : r . Timestamp ) ) ;
253
+ timestamp : r . Timestamp ,
254
+ tags : tags ) ) ;
252
255
} ) ;
253
256
}
254
257
0 commit comments