Skip to content

Commit b76a94e

Browse files
author
Eric Koleda
authored
Merge pull request googleworkspace#114 from jsmeredith/master
Update Drive Activity v2 sample code to use the new "drive" elements.
2 parents f79f2d2 + d1a14b6 commit b76a94e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drive/activity-v2/quickstart.gs

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ function getTargetInfo(target) {
9494
var title = target.driveItem.title || 'unknown';
9595
return 'driveItem:"' + title + '"';
9696
}
97-
if ('teamDrive' in target) {
98-
var title = target.teamDrive.title || 'unknown';
99-
return 'teamDrive:"' + title + '"';
97+
if ('drive' in target) {
98+
var title = target.drive.title || 'unknown';
99+
return 'drive:"' + title + '"';
100100
}
101101
if ('fileComment' in target) {
102102
var parent = target.fileComment.parent || {};

0 commit comments

Comments
 (0)