Updates 1 of many

This commit is contained in:
rijkvanzanten
2023-03-22 16:13:54 -04:00
parent e721e33c8b
commit 05034d0e17
3 changed files with 5 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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[] = [];

View File

@@ -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,