mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
Updated types.
This commit is contained in:
parent
1e0c177fe6
commit
6b9c83381c
12 changed files with 40 additions and 43 deletions
|
|
@ -206,16 +206,14 @@ function getPageFilters(filters: SearchFilter): [
|
|||
];
|
||||
}
|
||||
|
||||
function getSearchMode(): { mode?: Prisma.QueryMode } {
|
||||
function getQueryMode(): Prisma.QueryMode {
|
||||
const db = getDatabaseType();
|
||||
|
||||
if (db === POSTGRESQL) {
|
||||
return {
|
||||
mode: 'insensitive',
|
||||
};
|
||||
return 'insensitive';
|
||||
}
|
||||
|
||||
return {};
|
||||
return 'default';
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
@ -228,6 +226,6 @@ export default {
|
|||
getFilterQuery,
|
||||
parseFilters,
|
||||
getPageFilters,
|
||||
getSearchMode,
|
||||
getQueryMode,
|
||||
rawQuery,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue