Skip to content

Commit

Permalink
added extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed May 30, 2022
1 parent 0888f3c commit 25e6272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ringcentral-google-drive-notification-add-in",
"version": "0.2.6",
"version": "0.2.7",
"description": "RingCentral Add-In App",
"keywords": [
"RingCentral",
Expand Down
1 change: 1 addition & 0 deletions src/server/handlers/notificationHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ async function onReceiveNotification(googleUser) {
});
}

console.log(`OwnByMe: ${fileData.ownedByMe}\nIsReceiveNewFile: ${googleUser.isReceiveNewFile}\n SharedWithMeTime: ${fileData.sharedWithMeTime}`);
// Case: New File Share With Me
if (!fileData.ownedByMe && googleUser.isReceiveNewFile && fileData.sharedWithMeTime && isEventNew(change.time, fileData.sharedWithMeTime)) {
console.log('===========NEW FILE============');
Expand Down

0 comments on commit 25e6272

Please sign in to comment.