diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 824b840..2658980 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,8 @@
-
-
-
-
+
+
@@ -154,7 +152,6 @@
-
@@ -179,7 +176,8 @@
-
+
+
true
diff --git a/pkg/internal/services/bot_token.go b/pkg/internal/services/bot_token.go
index 6880bbb..26ab6b9 100644
--- a/pkg/internal/services/bot_token.go
+++ b/pkg/internal/services/bot_token.go
@@ -41,7 +41,7 @@ func NewApiKey(user models.Account, key models.ApiKey, ip, ua string, claims []s
func RollApiKey(key models.ApiKey) (models.ApiKey, error) {
var ticket models.AuthTicket
- if err := database.C.Where("ticket_id = ?", key.TicketID).First(&ticket).Error; err != nil {
+ if err := database.C.Where("id = ?", key.TicketID).First(&ticket).Error; err != nil {
return key, err
}