File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/providers/WorkflowCore.Persistence.MongoDB/Services Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77using System . Threading . Tasks ;
88using MongoDB . Bson ;
99using MongoDB . Bson . Serialization . Conventions ;
10+ using MongoDB . Bson . Serialization . Serializers ;
1011using MongoDB . Driver . Linq ;
1112using WorkflowCore . Interface ;
1213using WorkflowCore . Models ;
@@ -44,7 +45,8 @@ static MongoPersistenceProvider()
4445 x . MapProperty ( y => y . WorkflowDefinitionId ) ;
4546 x . MapProperty ( y => y . Version ) ;
4647 x . MapProperty ( y => y . NextExecution ) ;
47- x . MapProperty ( y => y . Status ) ;
48+ x . MapProperty ( y => y . Status )
49+ . SetSerializer ( new EnumSerializer < WorkflowStatus > ( BsonType . String ) ) ;
4850 x . MapProperty ( y => y . CreateTime ) ;
4951 x . MapProperty ( y => y . CompleteTime ) ;
5052 x . MapProperty ( y => y . ExecutionPointers ) ;
You can’t perform that action at this time.
0 commit comments