1
0
Fork 0
mirror of synced 2024-08-08 06:37:55 +12:00

Comment to explain function.

This commit is contained in:
mike12345567 2023-10-06 12:56:55 +01:00
parent 18cca671d4
commit 017b522a3f

View file

@ -57,6 +57,8 @@ function userColumnMapping(column: string, options: SearchParams) {
})
}
// maps through the search parameters to check if any of the inputs are invalid
// based on the table schema, converts them to something that is valid.
export function searchInputMapping(table: Table, options: SearchParams) {
for (let [key, column] of Object.entries(table.schema)) {
switch (column.type) {