mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
fix: notifs not live (#6299)
* fix: notifs not live * Update apps/labrinth/src/routes/internal/external_notifications.rs Co-authored-by: Sychic <47618543+Sychic@users.noreply.github.com> Signed-off-by: Calum H. <hendersoncal117@gmail.com> * fix: fmt --------- Signed-off-by: Calum H. <hendersoncal117@gmail.com> Co-authored-by: Sychic <47618543+Sychic@users.noreply.github.com>
This commit is contained in:
@@ -204,10 +204,11 @@ impl NotificationBuilder {
|
||||
users: Vec<DBUserId>,
|
||||
transaction: &mut PgTransaction<'_>,
|
||||
redis: &RedisPool,
|
||||
) -> Result<(), DatabaseError> {
|
||||
self.insert_many_records(&users, transaction).await?;
|
||||
) -> Result<Vec<DBNotificationId>, DatabaseError> {
|
||||
let notification_ids =
|
||||
self.insert_many_records(&users, transaction).await?;
|
||||
DBNotification::clear_user_notifications_cache(&users, redis).await?;
|
||||
Ok(())
|
||||
Ok(notification_ids)
|
||||
}
|
||||
|
||||
pub async fn insert_many_deliveries(
|
||||
|
||||
Reference in New Issue
Block a user