new(all): WebDav support for all bots.
This commit is contained in:
parent
7e1fda84bb
commit
009263d309
1 changed files with 65 additions and 67 deletions
|
@ -222,8 +222,6 @@ export class GBVMService extends GBService {
|
|||
}
|
||||
|
||||
public static async loadConnections(min) {
|
||||
|
||||
|
||||
// Loads storage custom connections.
|
||||
const path = DialogKeywords.getGBAIPath(min.botId, null);
|
||||
const filePath = Path.join('work', path, 'connections.json');
|
||||
|
@ -368,9 +366,8 @@ export class GBVMService extends GBService {
|
|||
let con = min[connectionName];
|
||||
|
||||
if (!con) {
|
||||
throw new Error(`Invalid connection specified: ${connectionName}.`);
|
||||
}
|
||||
|
||||
GBLogEx.debug(min, `Invalid connection specified: ${min.bot} ${tableName} ${connectionName}.`);
|
||||
} else {
|
||||
// Field checking, syncs if there is any difference.
|
||||
const seq = con ? con : minBoot.core.sequelize;
|
||||
|
||||
|
@ -447,6 +444,7 @@ export class GBVMService extends GBService {
|
|||
GBLogEx.info(min, `Done sync for ${min.botId} ${connectionName} ${tableName} storage table...`);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue