Skip to content

Commit

Permalink
Merge pull request #37 from ArtFXDev/beta
Browse files Browse the repository at this point in the history
Beta to prod
  • Loading branch information
johhnry authored Jan 25, 2022
2 parents 172abe8 + 81e2869 commit deb0bc7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/ArtFXDev/silex-socket-service"
},
"version": "1.5.2",
"version": "1.5.3",
"description": "",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/events/ui/getConnectedDccs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const logger = require("../../utils/logger");
const getConnectedDccs = (socket) => {
socket.on("getConnectedDccs", (callback) => {
logger.debugReceiveMessage("/ui", "getConnectedDccs");

logger.debugSendMessage("/ui", "getConnectedDccs");

callback({
status: 200, // ok
data: store.instance.data.dccs,
Expand Down
1 change: 1 addition & 0 deletions src/events/ui/getRunningActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const logger = require("../../utils/logger");
const getRunningActions = (socket) => {
socket.on("getRunningActions", (callback) => {
logger.debugReceiveMessage("/ui", "getRunningActions");
logger.debugSendMessage("/ui", "getRunningActions");

// Send the stored actions to the UI
callback({
Expand Down
8 changes: 6 additions & 2 deletions src/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ authRouter.post("/login", async (req, res) => {
// Save the store
persistStore();

// Return the data
res.json(response.data);
// Filter out the tokens
// eslint-disable-next-line no-unused-vars
const { access_token, refresh_token, ...rest } = response.data;

// Return the rest of the data
res.json(rest);

logger.info("Logging successful!");
} catch (err) {
Expand Down

0 comments on commit deb0bc7

Please sign in to comment.