fix active key,suffix

This commit is contained in:
Sakurasan committed 2025-04-20 16:22:23 +08:00
1 parent fe0f2a7e88
commit b83c6d9786
11 files changed
+106 -119

No files matched your search

+1
View File
@@ -93,6 +93,7 @@ func (dao *ApiKeyDAO) FindApiKeysBySupportModel(db *gorm.DB, modelName string) (
}
err := db.Model(&model.ApiKey{}).
Joins("CROSS JOIN JSON_EACH(apikeys.support_models)").
Where("active = true").
Where("value = ?", modelName).
Find(&apiKeys).Error
return apiKeys, err