Skip to content

Commit 40f7354

Browse files
committed
chore: adjustment error filter
Signed-off-by: Crisciany Souza <[email protected]>
1 parent 304c66b commit 40f7354

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/Db/SignRequestMapper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,13 +551,15 @@ private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, array
551551
);
552552
}
553553
if (!empty($filter['start'])) {
554+
$start = (new \DateTime('@'.$filter['start']))->format('Y-m-d H:i:s');
554555
$qb->andWhere(
555-
$qb->expr()->gte('f.created_at', $qb->createNamedParameter($filter['start'], IQueryBuilder::PARAM_INT))
556+
$qb->expr()->gte('f.created_at', $qb->createNamedParameter($start, IQueryBuilder::PARAM_STR))
556557
);
557558
}
558559
if (!empty($filter['end'])) {
560+
$end = (new \DateTime('@'.$filter['end']))->format('Y-m-d H:i:s');
559561
$qb->andWhere(
560-
$qb->expr()->lte('f.created_at', $qb->createNamedParameter($filter['end'], IQueryBuilder::PARAM_INT))
562+
$qb->expr()->lte('f.created_at', $qb->createNamedParameter($end, IQueryBuilder::PARAM_STR))
561563
);
562564
}
563565
}

0 commit comments

Comments
 (0)