diff --git a/dictation_server/src/repositories/licenses/licenses.repository.service.ts b/dictation_server/src/repositories/licenses/licenses.repository.service.ts index 51d227c..5bd59b9 100644 --- a/dictation_server/src/repositories/licenses/licenses.repository.service.ts +++ b/dictation_server/src/repositories/licenses/licenses.repository.service.ts @@ -420,7 +420,7 @@ export class LicensesRepositoryService { ], }) .andWhere( - 'license.expiry_date >= :nowDate OR license.expiry_date IS NULL', + '(license.expiry_date >= :nowDate OR license.expiry_date IS NULL)', { nowDate }, ) .orderBy('license.expiry_date IS NULL', 'DESC')