mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Updates 1 of many
This commit is contained in:
@@ -4,9 +4,9 @@ import { applyFilter } from '../../../utils/apply-query';
|
||||
import { DatabaseHelper } from '../types';
|
||||
|
||||
export type FnHelperOptions = {
|
||||
type?: string;
|
||||
query?: Query;
|
||||
originalCollectionName?: string;
|
||||
type: string | undefined;
|
||||
query: Query | undefined;
|
||||
originalCollectionName: string | undefined;
|
||||
};
|
||||
|
||||
export abstract class FnHelper extends DatabaseHelper {
|
||||
|
||||
@@ -69,7 +69,7 @@ export function sanitizeQuery(rawQuery: Record<string, any>, accountability?: Ac
|
||||
}
|
||||
|
||||
function sanitizeFields(rawFields: any) {
|
||||
if (!rawFields) return;
|
||||
if (!rawFields) return null;
|
||||
|
||||
let fields: string[] = [];
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ function extractOptions<T extends Record<string, any>>(
|
||||
? {
|
||||
...config,
|
||||
[key]: numberKeys.includes(key as any)
|
||||
? +value
|
||||
? +value!
|
||||
: booleanKeys.includes(key as any)
|
||||
? Boolean(value)
|
||||
: value,
|
||||
|
||||
Reference in New Issue
Block a user