upd
This commit is contained in:
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
# VITE_SERVER_URL=http://localhost:3001
|
VITE_SERVER_URL=http://localhost:3001
|
||||||
VITE_SERVER_URL=http://192.168.1.170:3001
|
# VITE_SERVER_URL=http://192.168.1.170:3001
|
||||||
# VITE_SERVER_URL=https://crm.stream.graff.tech/api
|
# VITE_SERVER_URL=https://crm.stream.graff.tech/api
|
||||||
@@ -104,7 +104,7 @@ function Card({
|
|||||||
|
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
{manager && (
|
{manager && (
|
||||||
<Link to={`http://192.168.1.170:5000/scheduled/${scheduledSessionId}`} target="_blank">
|
<Link to={`http://localhost:5001/scheduled/${scheduledSessionId}`} target="_blank">
|
||||||
<Button>Начать</Button>
|
<Button>Начать</Button>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -8,16 +8,7 @@ import { v4 as uuidv4 } from "uuid";
|
|||||||
const scheduledSessionsRouter = Router();
|
const scheduledSessionsRouter = Router();
|
||||||
|
|
||||||
scheduledSessionsRouter.get("/:id", async (req, res) => {
|
scheduledSessionsRouter.get("/:id", async (req, res) => {
|
||||||
if (!req.query.inviteKeyType || !req.query.inviteKeyValue) {
|
const scheduledSession = await ScheduledSession.findById(req.params.id);
|
||||||
res.json({
|
|
||||||
error:
|
|
||||||
"Query parameters `inviteKeyType` and `inviteKeyValue` is required",
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const scheduledSessionId = req.params.id;
|
|
||||||
const scheduledSession = await ScheduledSession.findById(scheduledSessionId);
|
|
||||||
|
|
||||||
res.json(scheduledSession);
|
res.json(scheduledSession);
|
||||||
});
|
});
|
||||||
@@ -71,11 +62,6 @@ scheduledSessionsRouter.get("/:buildId", async (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
scheduledSessionsRouter.post("/", async (req, res) => {
|
scheduledSessionsRouter.post("/", async (req, res) => {
|
||||||
// if (!req.body.companyId) {
|
|
||||||
// res.json({ error: "Parameter `companyId` is required" });
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if (!req.body.buildId) {
|
if (!req.body.buildId) {
|
||||||
res.json({ error: "Parameter `buildId` is required" });
|
res.json({ error: "Parameter `buildId` is required" });
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user