Comment to explain function.

This commit is contained in:
mike12345567 2023-10-06 12:56:55 +01:00
parent 18cca671d4
commit 017b522a3f
1 changed files with 2 additions and 0 deletions

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