This commit is contained in:
2025-03-26 13:33:37 +05:00
parent b907020d19
commit f1b6035192
8 changed files with 50 additions and 30 deletions
-6
View File
@@ -9,16 +9,10 @@ const buildSchema = new Schema(
name: {
type: String,
required: true,
unique: true,
},
build: {
type: String,
required: true,
unique: true,
},
sessionLimit: {
type: Number,
required: true,
},
},
{
+4 -4
View File
@@ -173,7 +173,7 @@ router.post("/", async (req, res) => {
// send mail with defined transport object
try {
await transporter.sendMail({
from: "stream@graff.tech", // sender address
from: "GRAFF.estate Stream <stream@graff.tech>", // sender address
to: client.email, // list of receivers
subject: "Приглашение на демонстрацию - stream.graff.tech", // Subject line
html: `<div>
@@ -246,9 +246,9 @@ router.delete("/:id", async (req, res) => {
const now = new Date();
if (now > tenMinutesAfterStart) {
return res.json({
status: "error",
message: "Cannot delete session after 10 minutes from start"
return res.json({
status: "error",
message: "Cannot delete session after 10 minutes from start",
});
}