From 71f7348bf6a4415130dfa69b6328cca1f840ca8f Mon Sep 17 00:00:00 2001 From: maui Date: Sun, 7 Apr 2024 22:04:15 +0200 Subject: [PATCH] Fix with translations --- src/server/helpers/translations/query/with-translations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/helpers/translations/query/with-translations.ts b/src/server/helpers/translations/query/with-translations.ts index 15edd25d..3c6830db 100644 --- a/src/server/helpers/translations/query/with-translations.ts +++ b/src/server/helpers/translations/query/with-translations.ts @@ -27,8 +27,8 @@ export function withTranslations< columns: config.columns, where: (translations: TranslationsTableColumns) => and( - isNotNull(sql.placeholder('locale')), - eq(translations.locale, sql.placeholder('locale')) + isNotNull(sql`${sql.placeholder('locale')}::text`), + eq(translations.locale, sql`${sql.placeholder('locale')}::text`) ), },