All file imports change from commonjs to es-module

This commit is contained in:
2022-08-22 23:03:19 +02:00
parent 628ed52012
commit ce45ed7b7f
94 changed files with 410 additions and 372 deletions

View File

@@ -1,4 +1,4 @@
const establishedDatabase = require("../../database/database");
import establishedDatabase from "../../database/database";
/* eslint-disable consistent-return */
const mustHaveAccountLinkedToPlex = (req, res, next) => {
@@ -33,4 +33,4 @@ const mustHaveAccountLinkedToPlex = (req, res, next) => {
};
/* eslint-enable consistent-return */
module.exports = mustHaveAccountLinkedToPlex;
export default mustHaveAccountLinkedToPlex;