generated from nhcarrigan/template
fix: remove stale eslint-disable directive in announcement route
This commit is contained in:
@@ -60,7 +60,6 @@ export const announcementRoutes: FastifyPluginAsync = async(server) => {
|
|||||||
server.post<{ Body: { content: string; type: string } }>(
|
server.post<{ Body: { content: string; type: string } }>(
|
||||||
"/announcement",
|
"/announcement",
|
||||||
|
|
||||||
// eslint-disable-next-line max-statements -- This is a long function.
|
|
||||||
async(request, reply) => {
|
async(request, reply) => {
|
||||||
const token = request.headers.authorization;
|
const token = request.headers.authorization;
|
||||||
if (token === undefined || token !== process.env.ANNOUNCEMENT_TOKEN) {
|
if (token === undefined || token !== process.env.ANNOUNCEMENT_TOKEN) {
|
||||||
|
|||||||
Reference in New Issue
Block a user