Browse Source

removed sheet id from sheets.js

tags/v0.1.10^2
big bad waffle 6 years ago
parent
commit
c1b9a6adcf
2 changed files with 6 additions and 3 deletions
  1. +1
    -0
      .gitignore
  2. +5
    -3
      src/server/security/sheets.js

+ 1
- 0
.gitignore View File

@@ -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 View File

@@ -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));
},



Loading…
Cancel
Save