1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Revert "use require instead of import"

This reverts commit b5635e89cc.
This commit is contained in:
PTR-inc 2025-02-25 15:40:48 +01:00
parent 7c22811fee
commit f28dece698

2
db.js
View file

@ -3778,7 +3778,7 @@ module.exports.CreateDB = function (parent, func) {
async function webDAVBackup(filename, func) {
try {
const webDAV = require('webdav');
const webDAV = await import ('webdav');
const wdConfig = parent.config.settings.autobackup.webdav;
const client = webDAV.createClient(wdConfig.url, {
username: wdConfig.username,