Use dslContext everywhere (#10028)

This commit is contained in:
Denis Bykhov
2025-10-06 07:30:54 +07:00
committed by GitHub
parent bb8dfc8130
commit a9b55916de
7 changed files with 26 additions and 22 deletions
+8
View File
@@ -12,6 +12,14 @@ import {
SelectedUserRequest
} from './types'
export function createContext (context: SelectedContext): string {
try {
return createDSLContext(context)
} catch {
return '$' + JSON.stringify(context)
}
}
export function createDSLContext (context: SelectedContext): string {
let expression = ''
switch (context.type) {