Skip to content

Commit 76fae16

Browse files
Merge pull request #22 from ledjon-behluli/fix-storeId-stream-on-insert
Fixes an issue with StoreId not being set when received via the stream
2 parents eb97938 + af79acc commit 76fae16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OrleanSpaces/Grains/Directors/BaseDirector.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ public async Task<Guid> Insert(TupleAction<TTuple> action)
8888
await GrainFactory.GetGrain<TStore>(CreateStoreKey(CurrentStoreId)).Insert(action.StoreTuple.Tuple);
8989
}
9090

91-
await stream.OnNextAsync(action);
91+
TupleAction<TTuple> newAction = new(action.AgentId, new(CurrentStoreId, action.StoreTuple.Tuple), action.Type);
92+
await stream.OnNextAsync(newAction);
93+
9294
return CurrentStoreId;
9395
}
9496

0 commit comments

Comments
 (0)