This commit is contained in:
2023-10-29 23:38:55 +05:00
parent 9c97dbc620
commit b4d67981ec
3 changed files with 4 additions and 18 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# VITE_SERVER_URL=http://localhost:3001
VITE_SERVER_URL=http://192.168.1.170:3001
VITE_SERVER_URL=http://localhost:3001
# VITE_SERVER_URL=http://192.168.1.170:3001
# VITE_SERVER_URL=https://crm.stream.graff.tech/api
+1 -1
View File
@@ -104,7 +104,7 @@ function Card({
<div className="flex gap-2">
{manager && (
<Link to={`http://192.168.1.170:5000/scheduled/${scheduledSessionId}`} target="_blank">
<Link to={`http://localhost:5001/scheduled/${scheduledSessionId}`} target="_blank">
<Button>Начать</Button>
</Link>
)}
+1 -15
View File
@@ -8,16 +8,7 @@ import { v4 as uuidv4 } from "uuid";
const scheduledSessionsRouter = Router();
scheduledSessionsRouter.get("/:id", async (req, res) => {
if (!req.query.inviteKeyType || !req.query.inviteKeyValue) {
res.json({
error:
"Query parameters `inviteKeyType` and `inviteKeyValue` is required",
});
return;
}
const scheduledSessionId = req.params.id;
const scheduledSession = await ScheduledSession.findById(scheduledSessionId);
const scheduledSession = await ScheduledSession.findById(req.params.id);
res.json(scheduledSession);
});
@@ -71,11 +62,6 @@ scheduledSessionsRouter.get("/:buildId", async (req, res) => {
});
scheduledSessionsRouter.post("/", async (req, res) => {
// if (!req.body.companyId) {
// res.json({ error: "Parameter `companyId` is required" });
// return;
// }
if (!req.body.buildId) {
res.json({ error: "Parameter `buildId` is required" });
return;