Skip to content

Commit

Permalink
Remove unused content var
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Oct 9, 2023
1 parent 264cb03 commit 3b6d645
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/UI/examples/server-example/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ const verify = async (payload: Payload) => {

app.post("/api/verify", async (req: Request, res: Response) => {
const payload: Payload = req.body;
let content: Uint8Array = new Uint8Array();
try {
if (payload.pdfUrl) {
const response = await axios.get(payload.pdfUrl, { responseType: "arraybuffer" });
content = Uint8Array.from(Buffer.from(response.data, "base64"));
payload.content = content.toString();
payload.content = Uint8Array.from(Buffer.from(response.data, "base64")).toString();
}

const verified = await verify(payload);
Expand Down

0 comments on commit 3b6d645

Please sign in to comment.