fix: remove unused db import in index api

This commit is contained in:
TheClashFruit 2024-02-07 19:17:51 +01:00
parent 6ee8b10f97
commit 3cf707239a
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204

View file

@ -1,7 +1,6 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import fs from 'fs';
import Database from '@/lib/database';
export default function handler(req, res) {
const resp = {
@ -25,8 +24,6 @@ export default function handler(req, res) {
]
};
const db = new Database();
try {
resp.build_id = fs.readFileSync('.next/BUILD_ID', 'utf8');
} catch (err) {