Skip to content

Commit

Permalink
migrations: fix regression node migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Cañuelo <[email protected]>
  • Loading branch information
r-c-n authored and JenySadadia committed Jan 24, 2024
1 parent 1a19820 commit 628a6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/20231215122000_node_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def upgrade(db: "pymongo.database.Database"):
'path': regression.get('path'),
'kind': 'regression',
'data': {
'pass_node': ObjectId(regression['regression_data'][0]),
'fail_node': ObjectId(regression['regression_data'][1])
'pass_node': ObjectId(regression['regression_data'][0]['_id']),
'fail_node': ObjectId(regression['regression_data'][1]['_id'])
},
'artifacts': regression.get('artifacts'),
'created': regression.get('created'),
Expand Down

0 comments on commit 628a6d6

Please sign in to comment.