Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eed7a01df | ||
|
|
a7be2baab2 | ||
|
|
5a9137e252 |
@@ -7,6 +7,12 @@ and this project follows [Semantic Versioning](https://semver.org/).
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.9.2] - 2026-08-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Contact-only events (no registration possible) were still getting the daily summary email — it now skips them since there's nothing to summarize.
|
||||||
|
|
||||||
## [1.9.1] - 2026-08-22
|
## [1.9.1] - 2026-08-22
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "event-management-backend",
|
"name": "event-management-backend",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"description": "Event Management System Backend",
|
"description": "Event Management System Backend",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1370,14 +1370,14 @@ async function sendDailyEventSummaries(now = new Date()) {
|
|||||||
const today = new Date(now);
|
const today = new Date(now);
|
||||||
const notifyInclude = { createdBy: { select: { id: true, name: true, email: true } }, notifyRecipients: { select: { id: true, name: true, email: true } } };
|
const notifyInclude = { createdBy: { select: { id: true, name: true, email: true } }, notifyRecipients: { select: { id: true, name: true, email: true } } };
|
||||||
let events = await prisma.event.findMany({
|
let events = await prisma.event.findMany({
|
||||||
where: { isActive: true, startDate: { gte: today } },
|
where: { isActive: true, startDate: { gte: today }, requiresRegistration: true },
|
||||||
include: notifyInclude,
|
include: notifyInclude,
|
||||||
orderBy: { startDate: 'asc' },
|
orderBy: { startDate: 'asc' },
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
events = await prisma.event.findMany({
|
events = await prisma.event.findMany({
|
||||||
where: { isActive: true, startDate: { gte: today }, goLiveAt: { lte: today } },
|
where: { isActive: true, startDate: { gte: today }, goLiveAt: { lte: today }, requiresRegistration: true },
|
||||||
include: notifyInclude,
|
include: notifyInclude,
|
||||||
orderBy: { startDate: 'asc' },
|
orderBy: { startDate: 'asc' },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hope-events-frontend",
|
"name": "hope-events-frontend",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack",
|
"dev": "next dev --turbopack",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hope-events",
|
"name": "hope-events",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:backend": "cd backend && npm run dev",
|
"dev:backend": "cd backend && npm run dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user