diff --git a/sockets/addCommand.js b/sockets/addCommand.js index 9f03db4..cc47783 100644 --- a/sockets/addCommand.js +++ b/sockets/addCommand.js @@ -1,5 +1,5 @@ -const models = require("../models") -const utils = require("./utils") +const models = require("../models"); +const utils = require("./utils"); module.exports = socket => { return async (data) => { @@ -33,7 +33,7 @@ module.exports = socket => { socket.emit("new command", send); socket.broadcast.emit("new command", send); } catch (e) { - socket.emit("error"); + socket.emit("internal error"); console.error(e); } } diff --git a/sockets/clearCommand.js b/sockets/clearCommand.js index 7f75613..db5fbc6 100644 --- a/sockets/clearCommand.js +++ b/sockets/clearCommand.js @@ -1,5 +1,5 @@ -const models = require("../models") -const utils = require("./utils") +const models = require("../models"); +const utils = require("./utils"); module.exports = socket => { return async (data) => { @@ -18,7 +18,7 @@ module.exports = socket => { socket.emit("clear command", data); socket.broadcast.emit("clear command", data); } catch (e) { - socket.emit("error"); + socket.emit("internal error"); console.error(e); } } diff --git a/sockets/errorCommand.js b/sockets/errorCommand.js index b9596ae..28f172e 100644 --- a/sockets/errorCommand.js +++ b/sockets/errorCommand.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async (data) => { @@ -13,7 +13,7 @@ module.exports = socket => { socket.emit("error command", data); socket.broadcast.emit("error command", data); } catch (e) { - socket.emit("error"); + socket.emit("internal error"); console.error(e); } } diff --git a/sockets/giveCommand.js b/sockets/giveCommand.js index ed16c50..1b176af 100644 --- a/sockets/giveCommand.js +++ b/sockets/giveCommand.js @@ -1,5 +1,5 @@ -const models = require("../models") -const utils = require("./utils") +const models = require("../models"); +const utils = require("./utils"); module.exports = socket => { return async (data) => { @@ -17,7 +17,7 @@ module.exports = socket => { socket.emit("give command", data); socket.broadcast.emit("give command", data); } catch (e) { - socket.emit("error"); + socket.emit("internal error"); console.error(e); } } diff --git a/sockets/listCommand.js b/sockets/listCommand.js index 9c26deb..c32d20f 100644 --- a/sockets/listCommand.js +++ b/sockets/listCommand.js @@ -1,5 +1,5 @@ -const models = require("../models") -const utils = require("./utils") +const models = require("../models"); +const utils = require("./utils"); module.exports = socket => { return async () => { diff --git a/sockets/listDessert.js b/sockets/listDessert.js index 6caa18a..91ff322 100644 --- a/sockets/listDessert.js +++ b/sockets/listDessert.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async () => { diff --git a/sockets/listDish.js b/sockets/listDish.js index 32218c5..dba7345 100644 --- a/sockets/listDish.js +++ b/sockets/listDish.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async () => { diff --git a/sockets/listDrink.js b/sockets/listDrink.js index 69479c4..a10258b 100644 --- a/sockets/listDrink.js +++ b/sockets/listDrink.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async () => { diff --git a/sockets/listIngredient.js b/sockets/listIngredient.js index 5098210..e20cc4f 100644 --- a/sockets/listIngredient.js +++ b/sockets/listIngredient.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async () => { diff --git a/sockets/listSauce.js b/sockets/listSauce.js index a1e4b28..604fab6 100644 --- a/sockets/listSauce.js +++ b/sockets/listSauce.js @@ -1,4 +1,4 @@ -const models = require("../models") +const models = require("../models"); module.exports = socket => { return async () => {