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,7 +1,7 @@
const User = require("../../media_classes/user");
import User from "../../media_classes/user";
function convertStreamToUser(plexStream) {
return new User(plexStream.id, plexStream.title);
}
module.exports = convertStreamToUser;
export default convertStreamToUser;