fix: oops

This commit is contained in:
2023-05-01 10:01:04 +02:00
parent ba7c6f422c
commit e12131cacc
2 changed files with 1 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ app.post("/transcriptor/save", (req, res) => {
})
app.use("/transcriptor/get", limiter)
app.post("/transcriptor/get", (req, res) => {
app.get("/transcriptor/get", (req, res) => {
getTranscript(req, res)
})

View File

@@ -2,7 +2,6 @@ import { Request, Response } from "express"
import db from "../../schemas/transcripts.js"
export default async function getTranscript(req: Request, res: Response) {
if (!req.body.token || req.body.token !== process.env.TRANSCRIPTS) return res.status(400).send({ success: false, reason: "no key?" })
try {
var database = await db.findOne({ msgid: req.query.msgid })
} catch {