Get votebits from DB (#29)

This commit is contained in:
David Hill 2020-05-19 04:51:18 -05:00 committed by GitHub
parent e70bb206c3
commit c9fca9bb0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -497,13 +497,10 @@ func ticketStatus(c *gin.Context) {
return
}
// TODO: DB - get current votebits, get ticket status
var voteBits uint16
sendJSONResponse(ticketStatusResponse{
Timestamp: time.Now().Unix(),
Request: ticketStatusRequest,
Status: "active", // TODO - active, pending, expired (missed, revoked?)
VoteBits: voteBits,
VoteBits: ticket.VoteBits,
}, c)
}