mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 20:56:02 -05:00
ignoreTransaction try 2
This commit is contained in:
@@ -7,6 +7,7 @@ import { tournamentIdFromParams } from "~/features/tournament";
|
||||
import { ignoreTransaction } from "~/utils/newrelic.server";
|
||||
|
||||
export const loader = ({ request, params }: LoaderFunctionArgs) => {
|
||||
ignoreTransaction();
|
||||
const tournamentId = tournamentIdFromParams(params);
|
||||
|
||||
return eventStream(request.signal, (send) => {
|
||||
@@ -15,8 +16,6 @@ export const loader = ({ request, params }: LoaderFunctionArgs) => {
|
||||
scores: [number, number];
|
||||
isOver: boolean;
|
||||
}) => {
|
||||
ignoreTransaction();
|
||||
|
||||
send({
|
||||
event: bracketSubscriptionKey(tournamentId),
|
||||
data: `${args.matchId}-${args.scores[0]}-${args.scores[1]}-${String(
|
||||
|
||||
@@ -7,8 +7,10 @@ import {
|
||||
matchSubscriptionKey,
|
||||
} from "../tournament-bracket-utils";
|
||||
import { getUserId } from "~/features/auth/core/user.server";
|
||||
import { ignoreTransaction } from "~/utils/newrelic.server";
|
||||
|
||||
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
|
||||
ignoreTransaction();
|
||||
const loggedInUser = await getUserId(request);
|
||||
const matchId = matchIdFromParams(params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user