Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey committed Dec 10, 2024
1 parent 2300b39 commit 2c88360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/scoutgame-ui/src/actions/createUserClaimScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import puppeteer from 'puppeteer';
import { PointsClaimBuilderScreen } from '../components/claim/components/PointsClaimScreen/PointsClaimModal/PointsClaimBuilderScreen';
import { PointsClaimScoutScreen } from '../components/claim/components/PointsClaimScreen/PointsClaimModal/PointsClaimScoutScreen';

export async function createUserClaimScreen(userId: string) {
export async function createUserClaimScreen({ userId, week }: { userId: string; week: string }) {
const { renderToString } = await import('react-dom/server');

const user = await prisma.scout.findUniqueOrThrow({
Expand Down Expand Up @@ -91,7 +91,7 @@ export async function createUserClaimScreen(userId: string) {
const screenshot = await page.screenshot();

await uploadFileToS3({
pathInS3: `points-claim/${userId}/${getLastWeek()}.png`,
pathInS3: `points-claim/${userId}/${week}.png`,
bucket: process.env.S3_UPLOAD_BUCKET,
content: screenshot as Buffer,
contentType: 'image/png'
Expand Down

0 comments on commit 2c88360

Please sign in to comment.