Random changes

This commit is contained in:
X4Lo committed 2024-10-21 16:06:32 +01:00
1 parent 7160669468
commit 0b1a1d989f
17 files changed
+205 -159

No files matched your search

+23
View File
@@ -1,8 +1,31 @@
const { Sequelize } = require("sequelize");
const Collection = require("../models/Collection");
const Genre = require("../models/Genre");
const Media = require("../models/Media");
async function initializeData() {
initializeGenres();
// const collections = await Collection.findAll({
// where: {
// posterPath: { [Sequelize.Op.notLike]: '/%' }
// }
// });
// collections.forEach(collection => {
// Media.create({
// mediaable: 'collection',
// mediaableId: collection.id,
// type: 'poster',
// path: collection.posterPath,
// isLocal: true,
// isSelected: true
// })
// });
// console.log(collections);
}
async function initializeGenres() {