From 8789af96b3a3adde7d7ab57edc3afb9fecd9730a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ig=C3=B3n?= Date: Tue, 14 Nov 2023 16:39:36 +0100 Subject: [PATCH] add InvestRepository --- src/Goteo/Repository/InvestRepository.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Goteo/Repository/InvestRepository.php diff --git a/src/Goteo/Repository/InvestRepository.php b/src/Goteo/Repository/InvestRepository.php new file mode 100644 index 0000000000..c3dc716350 --- /dev/null +++ b/src/Goteo/Repository/InvestRepository.php @@ -0,0 +1,23 @@ += DATE_SUB(NOW(), INTERVAL 1 MONTH))) + "; + + return (bool) $this->query($sql, [':user' => $user->id, ':post' => $post->id])->fetchColumn(); + } +}