Skip to content

Commit

Permalink
Add frames to replay get
Browse files Browse the repository at this point in the history
  • Loading branch information
phisn committed Oct 8, 2024
1 parent 5adfa11 commit 3442c02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/server/src/features/replay/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { UserService } from "../user/user-service"
import { worlds } from "../world/world-model"
import {
ReplaySummary,
decodeReplayFrames,
encodeReplayFrames,
replaySummaryColumns,
replaySummaryDTO,
Expand All @@ -36,7 +37,7 @@ export const routeReplay = new Hono<Environment>()

const result = await db
.select({
frames: replays.id,
frames: replays.binaryFrames,
})
.from(replays)
.innerJoin(users, eq(users.id, replays.userId))
Expand All @@ -49,7 +50,7 @@ export const routeReplay = new Hono<Environment>()
}

return c.json({
frames: replay.frames,
frames: decodeReplayFrames(replay.frames),
})
},
)
Expand Down

0 comments on commit 3442c02

Please sign in to comment.