handling conid==__model

This commit is contained in:
SPRINX0\prochazka
2024-11-04 15:21:36 +01:00
parent 55745c18e9
commit 41162ee2c3
3 changed files with 12 additions and 1 deletions

View File

@@ -350,6 +350,11 @@ module.exports = {
syncModel_meta: true,
async syncModel({ conid, database, isFullRefresh }, req) {
if (conid == '__model') {
socket.emitChanged('database-structure-changed', { conid, database });
return { status: 'ok' };
}
testConnectionPermission(conid, req);
const conn = await this.ensureOpened(conid, database);
conn.subprocess.send({ msgtype: 'syncModel', isFullRefresh });