From 6ddd661ae368aa399ace2e5717dd60417eff5756 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sun, 2 Dec 2018 17:58:33 +0100 Subject: [PATCH] Feat: Remove async in load actions --- src/store/modules/config.js | 2 +- src/store/modules/datas.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/store/modules/config.js b/src/store/modules/config.js index 2021b34..be1ed6f 100644 --- a/src/store/modules/config.js +++ b/src/store/modules/config.js @@ -30,7 +30,7 @@ export default { } }, actions: { - async load_postes (context) { + load_postes (context) { readFile(path.join(context.getters.config_dir, context.getters.postes_filename), 'utf8', (err, content) => { if (err) { console.log(err) diff --git a/src/store/modules/datas.js b/src/store/modules/datas.js index c2d8358..9d18ad9 100644 --- a/src/store/modules/datas.js +++ b/src/store/modules/datas.js @@ -80,7 +80,7 @@ export default { } }, actions: { - async find_csv (context) { + find_csv (context) { try { readdir(context.rootGetters['config/data_dir'], (err, list) => { if (err) { @@ -99,7 +99,7 @@ export default { console.log(e) } }, - async load_csv (context, csv) { + load_csv (context, csv) { readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => { if (err) { console.log(err)