Random changes
This commit is contained in:
1 parent
7160669468
commit
0b1a1d989f
17 files changed
+205
-159
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user