Use arrow function
This commit is contained in:
parent
e542d38ec7
commit
a107ee67fa
@ -74,7 +74,7 @@ CreateLayergroupMapConfigProvider.prototype.getAffectedTables = function (callba
|
|||||||
|
|
||||||
const queries = [];
|
const queries = [];
|
||||||
|
|
||||||
this.mapConfig.getLayers().forEach(function(layer) {
|
this.mapConfig.getLayers().forEach(layer => {
|
||||||
queries.push(layer.options.sql);
|
queries.push(layer.options.sql);
|
||||||
if (layer.options.affected_tables) {
|
if (layer.options.affected_tables) {
|
||||||
layer.options.affected_tables.map(table => {
|
layer.options.affected_tables.map(table => {
|
||||||
|
@ -106,7 +106,7 @@ MapStoreMapConfigProvider.prototype.getAffectedTables = function(callback) {
|
|||||||
|
|
||||||
const queries = [];
|
const queries = [];
|
||||||
|
|
||||||
mapConfig.getLayers().forEach(function(layer) {
|
mapConfig.getLayers().forEach(layer => {
|
||||||
queries.push(layer.options.sql);
|
queries.push(layer.options.sql);
|
||||||
if (layer.options.affected_tables) {
|
if (layer.options.affected_tables) {
|
||||||
layer.options.affected_tables.map(table => {
|
layer.options.affected_tables.map(table => {
|
||||||
|
Loading…
Reference in New Issue
Block a user