mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 01:25:00 +02:00
Use dslContext everywhere (#10028)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user