Skip to content

Commit

Permalink
Merge pull request googleworkspace#114 from jsmeredith/master
Browse files Browse the repository at this point in the history
Update Drive Activity v2 sample code to use the new "drive" elements.
  • Loading branch information
Eric Koleda authored May 3, 2019
2 parents f79f2d2 + d1a14b6 commit b76a94e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drive/activity-v2/quickstart.gs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ function getTargetInfo(target) {
var title = target.driveItem.title || 'unknown';
return 'driveItem:"' + title + '"';
}
if ('teamDrive' in target) {
var title = target.teamDrive.title || 'unknown';
return 'teamDrive:"' + title + '"';
if ('drive' in target) {
var title = target.drive.title || 'unknown';
return 'drive:"' + title + '"';
}
if ('fileComment' in target) {
var parent = target.fileComment.parent || {};
Expand Down

0 comments on commit b76a94e

Please sign in to comment.