mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #18124 from swordqiu/hotfix/qj-tenant-cache-convert-ids-utf8-error
fix: charset mismatch in tenant cache convert_ids
This commit is contained in:
@@ -581,7 +581,7 @@ func (manager *STenantCacheManager) ConvertIds(ids []string, isDomain bool) ([]s
|
||||
q = manager.GetTenantQuery("id")
|
||||
}
|
||||
q = q.Filter(sqlchemy.OR(
|
||||
sqlchemy.In(q.Field("id"), ids),
|
||||
sqlchemy.In(q.Field("id"), stringutils2.RemoveUtf8Strings(ids)),
|
||||
sqlchemy.In(q.Field("name"), ids),
|
||||
))
|
||||
q = q.Distinct()
|
||||
|
||||
Reference in New Issue
Block a user