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:
@ -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({
|
||||
|
Reference in New Issue
Block a user