fix: add module type to package.json and remove unused import in server.js

This commit is contained in:
2025-08-15 12:21:42 +02:00
parent 4bb071cbb5
commit 4244d03384
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
{ {
"name": "backend", "name": "backend",
"version": "1.0.0", "version": "1.0.0",
"type": "module",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
@@ -18,4 +19,4 @@
"jose": "^6.0.12", "jose": "^6.0.12",
"mysql2": "^3.14.3" "mysql2": "^3.14.3"
} }
} }

View File

@@ -9,7 +9,6 @@ import {
removeEntries, removeEntries,
saveRow, saveRow,
resetData, resetData,
getVitals,
} from "./services/database.js"; } from "./services/database.js";
import { generateToken, authenticate } from "./services/tokenService.js"; import { generateToken, authenticate } from "./services/tokenService.js";
env.config(); env.config();