Fix messages not sent

This commit is contained in:
MartinBraquet
2025-10-25 15:48:42 +02:00
parent 2fdaa464dd
commit 65f0d448a1
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ const notifyOtherUserInChannelIfInactive = async (
[channelId, creator.id, startOfDay]
)
log('previous messages this day', previousMessagesThisDayBetweenTheseUsers)
if (previousMessagesThisDayBetweenTheseUsers.count > 0) return
if (previousMessagesThisDayBetweenTheseUsers.count > 1) return
await createNewMessageNotification(creator, otherUser, channelId)
}

View File

@@ -5,7 +5,7 @@ import {NewMessageEmail} from '../new-message'
import {NewEndorsementEmail} from '../new-endorsement'
import {Test} from '../test'
import {getProfile} from 'shared/profiles/supabase'
import { render } from "@react-email/render"
import {render} from "@react-email/render"
import {MatchesType} from "common/profiles/bookmarked_searches";
import NewSearchAlertsEmail from "email/new-search_alerts";
import WelcomeEmail from "email/welcome";