Bläddra i källkod

removed sheet id from sheets.js

tags/v0.1.10^2
big bad waffle 6 år sedan
förälder
incheckning
c1b9a6adcf
2 ändrade filer med 6 tillägg och 3 borttagningar
  1. +1
    -0
      .gitignore
  2. +5
    -3
      src/server/security/sheets.js

+ 1
- 0
.gitignore Visa fil

@@ -4,4 +4,5 @@ storage.db
*.sublime-workspace
*.css
creds.js
sheetsConfig.js
!helpers/item-tooltip/styles.css

+ 5
- 3
src/server/security/sheets.js Visa fil

@@ -1,9 +1,11 @@
define([
'google-spreadsheet',
'./creds'
'./creds',
'./sheetsConfig'
], function (
googleSheets,
creds
creds,
sheetsConfig
) {
return {
doc: null,
@@ -12,7 +14,7 @@ define([
records: null,

init: function () {
this.doc = new googleSheets('1PhNFF8IbNX7uecFeWkFsoTZgDfLF-zWVibOTuutNy8c');
this.doc = new googleSheets(sheetsConfig.sheetId);
this.doc.useServiceAccountAuth(creds, this.onAuth.bind(this));
},



Laddar…
Avbryt
Spara