Ver a proveniência

removed sheet id from sheets.js

tags/v0.1.10^2
big bad waffle há 6 anos
ascendente
cometimento
c1b9a6adcf
2 ficheiros alterados com 6 adições e 3 eliminações
  1. +1
    -0
      .gitignore
  2. +5
    -3
      src/server/security/sheets.js

+ 1
- 0
.gitignore Ver ficheiro

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

+ 5
- 3
src/server/security/sheets.js Ver ficheiro

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


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




Carregando…
Cancelar
Guardar