Skip to content

Commit

Permalink
(simatec) Fix Zigbee2MQTT Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Aug 26, 2024
1 parent 77d7097 commit ccf84fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ When you allow iobroker GmbH to collect diagnostic data, then also your installa
## Changelog
### **WORK IN PROGRESS**
* (simatec) Fix Onedrive Notification
* (simatec) Fix Zigbee2MQTT Backup

### 3.0.20 (2024-08-22)
* (simatec) Responsive Design for Tab added
Expand Down
4 changes: 2 additions & 2 deletions lib/scripts/34-zigbee2mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function command(options, log, callback) {

try {
await tmpCopy(pth, tmpDir, log);
await compressBackupFile(fileName, tmpDir, log, callback);
await compressBackupFile(options, fileName, tmpDir, log, callback);
} catch (err) {
clearInterval(timer);
options.context.errors.zigbee2mqtt = err.toString();
Expand Down Expand Up @@ -133,7 +133,7 @@ async function tmpCopy(pth, tmpDir, log) {
});
}

async function compressBackupFile(fileName, tmpDir, log, callback) {
async function compressBackupFile(options, fileName, tmpDir, log, callback) {
return new Promise(async (resolve, reject) => {
const compress = require('../targz').compress;

Expand Down

0 comments on commit ccf84fe

Please sign in to comment.