Skip to content

Commit

Permalink
Fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
samantharamon committed Aug 20, 2024
1 parent 12172fe commit bba5cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Samples/outlook-encrypt-attachments/src/commands/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function encryptAttachment(encryptedData, callingEvent) {
encryptedFileName,
options,
(asyncResult) => {
options = { 'asyncContext': { encryptedFileName: asyncResult.asyncContext.encryptedFileName, callingEvent: asyncResult.asyncContext.callingEvent, encryptedData: encryptedData} };
const options = { 'asyncContext': { encryptedFileName: asyncResult.asyncContext.encryptedFileName, callingEvent: asyncResult.asyncContext.callingEvent, encryptedData: encryptedData} };
console.log(`encryptAttachment(): Added encrypted attachment '${asyncResult.asyncContext.encryptedFileName}'; now decrypting...`);
//console.dir(asyncResult); // NOTE: If you want to see the base64 data output to the console, uncomment this line.
decryptAttachment(options);
Expand All @@ -442,7 +442,7 @@ function decryptAttachment(result) {
const originalText = bytes.toString(CryptoJS.enc.Utf8);
const decryptedFileName = `${decryptedAttachmentPrefix}${fileName}`;

// console.log(`decryptAttachment(): Original base64: ${originalText}`); //NOTE: If you want to see the base64 data output to the console, uncomment this line
// console.log(`decryptAttachment(): Original base64: ${originalText}`); //NOTE: If you want to see the base64 data output to the console, uncomment this line.
console.log(`decryptAttachment(): Adding decrypted file '${decryptedFileName}'...`);

const options = { 'asyncContext': { callingEvent: result.asyncContext.callingEvent} };
Expand Down

0 comments on commit bba5cc7

Please sign in to comment.