mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 03:34:03 +00:00
more error handling, fix indentation
This commit is contained in:
@@ -31,7 +31,11 @@ function addNewMemberToSheets(data, callback) {
|
||||
function getInfoAndWorksheets(cb) {
|
||||
console.log('Start Google Spreadsheet info fetch.');
|
||||
doc.getInfo(function(err, info) {
|
||||
if(err) {
|
||||
cb(err);
|
||||
} else {
|
||||
cb(null, info.worksheets[0]);
|
||||
}
|
||||
});
|
||||
},
|
||||
function addRow(sheet, cb) {
|
||||
|
||||
Reference in New Issue
Block a user