Use arrow function

This commit is contained in:
Daniel García Aubert 2018-03-27 10:32:22 +02:00
parent e542d38ec7
commit a107ee67fa
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ CreateLayergroupMapConfigProvider.prototype.getAffectedTables = function (callba
const queries = [];
this.mapConfig.getLayers().forEach(function(layer) {
this.mapConfig.getLayers().forEach(layer => {
queries.push(layer.options.sql);
if (layer.options.affected_tables) {
layer.options.affected_tables.map(table => {

View File

@ -106,7 +106,7 @@ MapStoreMapConfigProvider.prototype.getAffectedTables = function(callback) {
const queries = [];
mapConfig.getLayers().forEach(function(layer) {
mapConfig.getLayers().forEach(layer => {
queries.push(layer.options.sql);
if (layer.options.affected_tables) {
layer.options.affected_tables.map(table => {