Get votebits from DB (#29)
This commit is contained in:
parent
e70bb206c3
commit
c9fca9bb0e
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user