Feat: Remove async in load actions

This commit is contained in:
Bertrand Benjamin 2018-12-02 17:58:33 +01:00
parent 0c2b8159d1
commit a3a1055c90
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)