fix: use project ID in admin SDK json

This commit is contained in:
2024-06-15 06:13:07 -04:00
parent 5dc45fac58
commit d39165c8f6
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ export async function sendFcmMessage(
isOnlyValidatingFcmMessage?: boolean,
) {
return fetch(
"https://fcm.googleapis.com/v1/projects/aniplay-73b59/messages:send",
`https://fcm.googleapis.com/v1/projects/${adminSdkJson.projectID}/messages:send`,
{
method: "POST",
body: JSON.stringify({

View File

@@ -4,7 +4,7 @@ import type { FcmMessagePayload } from "~/libs/fcm/sendFcmMessage";
export function mockFcmMessageResponse() {
return http.post<{}, { message: FcmMessagePayload; validate_only: boolean }>(
"https://fcm.googleapis.com/v1/projects/aniplay-73b59/messages:send",
"https://fcm.googleapis.com/v1/projects/test-26g38/messages:send",
async ({ request }) => {
const { message } = await request.json();
const { name, token } = message;