'use strict'; const _ = require('lodash'); module.exports = function(Elu) { Elu.observe('before save', function filterProperties(ctx, next) { ctx.instance.firstname = _.upperCase(ctx.instance.firstname.toUpperCase()); ctx.instance.lastname = _.upperCase(ctx.instance.lastname.toUpperCase()); next(); }); };