Skip to content

Commit 25b343d

Browse files
author
John Barton
committed
Update README to document event parameters correctly
1 parent 485e793 commit 25b343d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ var backup = new DynamoBackup({
4747
});
4848
4949
backup.on('error', function(data) {
50-
console.log('Error backing up ' + data.tableName);
51-
console.log(data.error);
50+
console.log('Error backing up ' + data.table);
51+
console.log(data.err);
5252
});
5353
54-
backup.on('start-backup', function(tableName) {
54+
backup.on('start-backup', function(tableName, startTime) {
5555
console.log('Starting to copy table ' + tableName);
5656
});
5757
58-
backup.on('end-backup', function(tableName) {
58+
backup.on('end-backup', function(tableName, backupDuration) {
5959
console.log('Done copying table ' + tableName);
6060
});
6161

0 commit comments

Comments
 (0)