mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 23:58:36 -05:00
SendouQ collect ready checks before starting a match
This commit is contained in:
@@ -6,6 +6,7 @@ import { actorId } from "~/features/auth/core/user.server";
|
||||
import { dateToDatabaseTimestamp } from "../../utils/dates";
|
||||
import { NOTIFICATIONS } from "./notifications-contants";
|
||||
import type { Notification } from "./notifications-types";
|
||||
import { notificationMeta } from "./notifications-utils";
|
||||
|
||||
export function insert(
|
||||
notification: Notification,
|
||||
@@ -17,7 +18,9 @@ export function insert(
|
||||
.values({
|
||||
type: notification.type,
|
||||
pictureUrl: notification.pictureUrl,
|
||||
meta: notification.meta ? JSON.stringify(notification.meta) : null,
|
||||
meta: notificationMeta(notification)
|
||||
? JSON.stringify(notificationMeta(notification))
|
||||
: null,
|
||||
})
|
||||
.returning("id")
|
||||
.executeTakeFirstOrThrow();
|
||||
|
||||
Reference in New Issue
Block a user