fix: #296
This commit is contained in:
parent
739f584921
commit
34552926d1
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import { createInvisURL, randomChars } from 'lib/util';
|
|||
const logger = Logger.get('shorten');
|
||||
|
||||
async function handler(req: NextApiReq, res: NextApiRes) {
|
||||
if (!req.headers.authorization) return res.badRequest('no authorization');
|
||||
if (!req.headers.authorization) return res.forbidden('no authorization');
|
||||
|
||||
const user = await prisma.user.findFirst({
|
||||
where: {
|
||||
|
|
Loading…
Reference in a new issue