Created
August 9, 2020 13:09
-
-
Save iaindooley/b2493d5b799933c2d4eee3d365fd9384 to your computer and use it in GitHub Desktop.
Audit log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logMemberAdded(notification) | |
{ | |
var notif = new Notification(notification); | |
var added = notif.addedMemberToBoard(); | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; | |
sheet.appendRow([Trellinator.now(),added.name(),notif.member().name()]); | |
} | |
function logMemberRemoved(notification) | |
{ | |
var notif = new Notification(notification); | |
var removed = notif.removedMemberFromBoard(); | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; | |
sheet.appendRow([Trellinator.now(),removed.name(),notif.member().name()]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment