ReferendumStatus duplicated
Closed this issue · 1 comments
Tbaut commented
We need to check for others such as MotionStatus, ProposalStatus but I'm pretty sure they are duplicated as well.
query {
referendums {
referendumId
referendumStatus {
status
blockNumber {
number
}
}
}
}
"referendums": [
{
"referendumId": 2,
"referendumStatus": [
{
"status": "Started",
"blockNumber": {
"number": 66950
}
}
]
},
{
"referendumId": 3,
"referendumStatus": [
{
"status": "Started",
"blockNumber": {
"number": 69724
}
},
{
"status": "Passed",
"blockNumber": {
"number": 73624
}
},
{
"status": "Passed",
"blockNumber": {
"number": 73624
}
}
]
},
Tbaut commented
Fixing this manually in the DB for now, I'll add this trick then:
https://stackoverflow.com/questions/53373101/prisma-datamodel-primary-key-as-a-combination-of-two-relational-models/56984957#56984957