salix/modules/agency/back/models/zone-exclusion.js

12 lines
298 B
JavaScript
Raw Normal View History

2020-01-22 09:41:09 +00:00
const app = require('vn-loopback/server/server');
module.exports = Self => {
Self.observe('after save', async function() {
await app.models.ZoneClosure.doRecalc();
});
Self.observe('after delete', async function() {
await app.models.ZoneClosure.doRecalc();
});
};