mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-03-04 18:00:08 +00:00
fix config field names
This commit is contained in:
@@ -18,15 +18,15 @@ function log(message) {
|
|||||||
|
|
||||||
function addNewMemberToSheets(data, callback) {
|
function addNewMemberToSheets(data, callback) {
|
||||||
var {name, email, address, postcode, city, handle} = data;
|
var {name, email, address, postcode, city, handle} = data;
|
||||||
var doc = new GoogleSpreadsheet(config.google.spreadsheet_id);
|
var doc = new GoogleSpreadsheet(config.google.spreadsheetId);
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function setAuth(cb) {
|
function setAuth(cb) {
|
||||||
console.log('Start Google Spreadsheed auth.');
|
console.log('Start Google Spreadsheed auth.');
|
||||||
doc.useServiceAccountAuth({
|
doc.useServiceAccountAuth({
|
||||||
clientEmail: config.google.clientEmail,
|
client_email: config.google.clientEmail,
|
||||||
privateKey: config.google.privateKey
|
private_key: config.google.privateKey
|
||||||
}, () => cb());
|
}, (err) => cb(err));
|
||||||
},
|
},
|
||||||
function getInfoAndWorksheets(cb) {
|
function getInfoAndWorksheets(cb) {
|
||||||
console.log('Start Google Spreadsheet info fetch.');
|
console.log('Start Google Spreadsheet info fetch.');
|
||||||
|
|||||||
Reference in New Issue
Block a user