mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[raffle] Fix: Send ID as string
in order to be able to transport big uint64 through JSON Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
4964ed25cf
commit
e8d60e2733
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ type (
|
|||
}
|
||||
|
||||
raffle struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
ID uint64 `gorm:"primaryKey" json:"id,string"`
|
||||
|
||||
Channel string `json:"channel"`
|
||||
Keyword string `json:"keyword"`
|
||||
|
@ -67,7 +67,7 @@ type (
|
|||
}
|
||||
|
||||
raffleEntry struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
ID uint64 `gorm:"primaryKey" json:"id,string"`
|
||||
RaffleID uint64 `gorm:"uniqueIndex:user_per_raffle" json:"-"`
|
||||
|
||||
UserID string `gorm:"size:128;uniqueIndex:user_per_raffle" json:"userID"`
|
||||
|
|
Loading…
Reference in a new issue