Sitelet https://github.com/hermanho/MMM-GooglePhotos/commit/fb5d4c577bf529044a68f104f69aee7c6de56e6f
Skip to content

Commit fb5d4c5

Browse files
committed
fix config is null
1 parent 6fed3bc commit fb5d4c5

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎.eslintrc.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"node": true
1717
},
1818
"globals": {
19-
"config": true,
2019
"Log": true,
2120
"MM": true,
2221
"Module": true,

‎node_helper.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,17 +245,17 @@ module.exports = NodeHelper.create({
245245
*/
246246
let albums = await this.getAlbums();
247247
if (this.config.uploadAlbum) {
248-
const uploadAlbum = albums.find((a) => a.title === config.uploadAlbum);
248+
const uploadAlbum = albums.find((a) => a.title === this.config.uploadAlbum);
249249
if (uploadAlbum) {
250250
if (uploadAlbum.hasOwnProperty("shareInfo") && uploadAlbum.isWriteable) {
251-
Log.info("Confirmed Uploadable album:", config.uploadAlbum, uploadAlbum.id);
251+
Log.info("Confirmed Uploadable album:", this.config.uploadAlbum, uploadAlbum.id);
252252
this.uploadAlbumId = uploadAlbum.id;
253-
this.sendSocketNotification("UPLOADABLE_ALBUM", config.uploadAlbum);
253+
this.sendSocketNotification("UPLOADABLE_ALBUM", this.config.uploadAlbum);
254254
} else {
255-
Log.error("This album is not uploadable:", config.uploadAlbum);
255+
Log.error("This album is not uploadable:", this.config.uploadAlbum);
256256
}
257257
} else {
258-
Log.error("Can't find uploadable album :", config.uploadAlbum);
258+
Log.error("Can't find uploadable album :", this.config.uploadAlbum);
259259
}
260260
}
261261
/**

0 commit comments

Comments
 (0)