mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
refactor: custom fields casing
This commit is contained in:
committed by
Carlos Valente
parent
95b437e18c
commit
0c3c08ac98
@@ -27,7 +27,7 @@ export function parseProperty(property: string, value: unknown) {
|
||||
throw new Error(`Custom field ${customKey} not found`);
|
||||
}
|
||||
const parserFn = whitelistedPayload.custom;
|
||||
return { custom: { [customKey]: { value: parserFn(value) } } };
|
||||
return { custom: { [customKey]: parserFn(value) } };
|
||||
}
|
||||
|
||||
if (!isKeyOfType(property, whitelistedPayload)) {
|
||||
|
||||
Reference in New Issue
Block a user