fix active key,suffix
This commit is contained in:
1 parent
fe0f2a7e88
commit
b83c6d9786
11 files changed
+106
-119
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user