mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
use require instead of import
This commit is contained in:
2
db.js
2
db.js
@@ -3778,7 +3778,7 @@ module.exports.CreateDB = function (parent, func) {
|
||||
|
||||
async function webDAVBackup(filename, func) {
|
||||
try {
|
||||
const webDAV = await import ('webdav');
|
||||
const webDAV = require('webdav');
|
||||
const wdConfig = parent.config.settings.autobackup.webdav;
|
||||
const client = webDAV.createClient(wdConfig.url, {
|
||||
username: wdConfig.username,
|
||||
|
||||
Reference in New Issue
Block a user