forked from baron/baron-sso
감사로그 조회 에러 수정
This commit is contained in:
@@ -118,8 +118,8 @@ func (r *ClickHouseRepository) FindPage(ctx context.Context, limit int, cursor *
|
||||
args := make([]any, 0, 5)
|
||||
|
||||
if tenantID != "" {
|
||||
query += " AND tenant_id = ?"
|
||||
args = append(args, tenantID)
|
||||
query += " AND (tenant_id = ? OR (tenant_id = '' AND JSONExtractString(details, 'tenant_id') = ?))"
|
||||
args = append(args, tenantID, tenantID)
|
||||
}
|
||||
|
||||
if cursor != nil {
|
||||
|
||||
Reference in New Issue
Block a user