only use blocked date and no published date for blocking;

allow any date to be selected as block date - not only the end of the month
This commit is contained in:
Dobromir Popov
2024-09-17 23:18:51 +03:00
parent 1d4696f0f7
commit bab62816b0
7 changed files with 699 additions and 22 deletions

View File

@ -318,7 +318,7 @@ export const getServerSideProps = async (context) => {
if (blockedDate) {
blockedDate.value = new Date(blockedDate.value);
lastPublishedDate = lastPublishedDate > blockedDate.value ? lastPublishedDate : blockedDate.value;
lastPublishedDate = blockedDate.value;
}
let messages = await prisma.message.findMany({