소스 검색

removed sheet id from sheets.js

tags/v0.1.10^2
big bad waffle 6 년 전
부모
커밋
c1b9a6adcf
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -0
      .gitignore
  2. +5
    -3
      src/server/security/sheets.js

+ 1
- 0
.gitignore 파일 보기

@@ -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 파일 보기

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



불러오는 중...
취소
저장