everydaycats commited on
Commit
3cfc75e
·
verified ·
1 Parent(s): 81bfb97

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +4 -2
app.js CHANGED
@@ -44,7 +44,7 @@ const verifyFirebaseUser = async (req, res, next) => {
44
  const debugMode = process.env.DEBUG_NO_AUTH === 'true';
45
 
46
  if (debugMode) {
47
- req.user = { uid: "user_dev_001" };
48
  return next();
49
  }
50
 
@@ -257,7 +257,9 @@ app.post('/poll', async (req, res) => {
257
 
258
  try {
259
  const response = await axios.post(targetUrl, {
260
- projectId: verifiedData.projectId
 
 
261
  });
262
 
263
  // Return raw response from Main Server (contains action: 'EXECUTE', code: '...')
 
44
  const debugMode = process.env.DEBUG_NO_AUTH === 'true';
45
 
46
  if (debugMode) {
47
+ req.user = { uid: "user_dev_01" };
48
  return next();
49
  }
50
 
 
257
 
258
  try {
259
  const response = await axios.post(targetUrl, {
260
+ // projectId: verifiedData.projectId
261
+ projectId: verifiedData.projectId,
262
+ userId: verifiedData.uid
263
  });
264
 
265
  // Return raw response from Main Server (contains action: 'EXECUTE', code: '...')