231801_test_to_master #1519

Merged
alexm merged 490 commits from 231801_test_to_master into master 2023-05-12 06:29:59 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 3456438485 - Show all commits

View File

@ -1,11 +1,11 @@
const {models} = require('vn-loopback/server/server');
const app = require('vn-loopback/server/server');
module.exports = Self => {
app.on('started', function() {
let models = ['Zone', 'ZoneEvent', 'ZoneExclusion'];
for (let modelName of models) {
let Model = models[modelName];
let Model = app.models[modelName];
Model.observe('after save', doCalc);
Model.observe('after delete', doCalc);