Feat: Remove async in load actions

This commit is contained in:
Bertrand Benjamin 2018-12-02 17:58:33 +01:00
parent 95326b7619
commit 6ddd661ae3
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ export default {
} }
}, },
actions: { actions: {
async load_postes (context) { load_postes (context) {
readFile(path.join(context.getters.config_dir, context.getters.postes_filename), 'utf8', (err, content) => { readFile(path.join(context.getters.config_dir, context.getters.postes_filename), 'utf8', (err, content) => {
if (err) { if (err) {
console.log(err) console.log(err)

View File

@ -80,7 +80,7 @@ export default {
} }
}, },
actions: { actions: {
async find_csv (context) { find_csv (context) {
try { try {
readdir(context.rootGetters['config/data_dir'], (err, list) => { readdir(context.rootGetters['config/data_dir'], (err, list) => {
if (err) { if (err) {
@ -99,7 +99,7 @@ export default {
console.log(e) console.log(e)
} }
}, },
async load_csv (context, csv) { load_csv (context, csv) {
readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => { readFile(path.join(context.rootGetters['config/data_dir'], csv), 'utf8', (err, content) => {
if (err) { if (err) {
console.log(err) console.log(err)