Spaces:
Running
Running
Update app.js
Browse files
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: "
|
| 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 |
-
|
|
|
|
|
|
|
| 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: '...')
|