Fix tests
This commit is contained in:
parent
76af1208de
commit
6c1b3a0d2d
|
@ -80,7 +80,7 @@ export async function search(
|
||||||
|
|
||||||
const table = await sdk.tables.getTable(options.tableId)
|
const table = await sdk.tables.getTable(options.tableId)
|
||||||
options = searchInputMapping(table, options, {
|
options = searchInputMapping(table, options, {
|
||||||
isSql: !!table.sql || !!env.SQS_SEARCH_ENABLE,
|
isSql: !!table.sql,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isExternalTable) {
|
if (isExternalTable) {
|
||||||
|
|
|
@ -73,7 +73,7 @@ function userColumnMapping(
|
||||||
|
|
||||||
let wrapper = (s: string) => s
|
let wrapper = (s: string) => s
|
||||||
if (isDeprecatedSingleUserColumn && filterValue && isSql) {
|
if (isDeprecatedSingleUserColumn && filterValue && isSql) {
|
||||||
// Decreated single users are stored as stringified arrays of a single value
|
// Deprecated single users are stored as stringified arrays of a single value
|
||||||
wrapper = (s: string) => JSON.stringify([s])
|
wrapper = (s: string) => JSON.stringify([s])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue