From 53abc4c272be9ecc951274458d054dbaf86e594d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 31 Oct 2017 16:31:24 +0100 Subject: Upgrade server packages --- server/initializers/migrations/0080-video-channels.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/initializers/migrations/0080-video-channels.ts') diff --git a/server/initializers/migrations/0080-video-channels.ts b/server/initializers/migrations/0080-video-channels.ts index fc55ef3a2..f19721517 100644 --- a/server/initializers/migrations/0080-video-channels.ts +++ b/server/initializers/migrations/0080-video-channels.ts @@ -34,7 +34,7 @@ async function up (utils: { // Create one author per user that does not already exist const users = await utils.db.User.findAll() for (const user of users) { - const author = await utils.db.Author.find({ where: { userId: user.id }}) + const author = await utils.db.Author.find({ where: { userId: user.id } }) if (!author) { await utils.db.Author.create({ name: user.username, @@ -72,7 +72,7 @@ async function up (utils: { const rawVideos = await utils.sequelize.query(query, options) for (const rawVideo of rawVideos) { - const videoChannel = await utils.db.VideoChannel.findOne({ where: { authorId: rawVideo.authorId }}) + const videoChannel = await utils.db.VideoChannel.findOne({ where: { authorId: rawVideo.authorId } }) const video = await utils.db.Video.findById(rawVideo.id) video.channelId = videoChannel.id -- cgit v1.2.3