Skip to content

Commit

Permalink
reduce history.gif size
Browse files Browse the repository at this point in the history
  • Loading branch information
chetbox committed Jan 19, 2025
1 parent 4e2f8c3 commit 6d75606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const historyGif = functions
try {
const [depthSnapshot, historySnapshot] = await Promise.all([
database.ref("canvas").child(IMAGE_ID).child("depth").once("value"),
database.ref("canvas").child(IMAGE_ID).child("history").orderByChild("timestamp").limitToLast(200_000).once("value"),
database.ref("canvas").child(IMAGE_ID).child("history").orderByChild("timestamp").limitToLast(100_000).once("value"),
]);
const depth = depthSnapshot.val() as Canvas["depth"];
const history = Object.values(
Expand Down

0 comments on commit 6d75606

Please sign in to comment.