X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fmigrations%2Fpeertube-2.1.ts;h=4bbc203c18afd1e93eb58853e68711d65286ed70;hb=36e5e1d7a68aeb59e2cf17691c922213b606b249;hp=892497a8892735b6d4b40e1ba03907bdee53c493;hpb=907b8f9347cca117c77a83cbea27140a10e3311e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/migrations/peertube-2.1.ts b/scripts/migrations/peertube-2.1.ts index 892497a88..4bbc203c1 100644 --- a/scripts/migrations/peertube-2.1.ts +++ b/scripts/migrations/peertube-2.1.ts @@ -1,14 +1,14 @@ import { registerTSPaths } from '../../server/helpers/register-ts-paths' registerTSPaths() -import { initDatabaseModels, sequelizeTypescript } from '../../server/initializers' +import { initDatabaseModels, sequelizeTypescript } from '../../server/initializers/database' import * as Sequelize from 'sequelize' import { join } from 'path' import { HLS_STREAMING_PLAYLIST_DIRECTORY, STATIC_PATHS, WEBSERVER } from '@server/initializers/constants' import { pathExists, stat, writeFile } from 'fs-extra' import { createTorrentPromise } from '@server/helpers/webtorrent' import { CONFIG } from '@server/initializers/config' -import * as parseTorrent from 'parse-torrent' +import parseTorrent from 'parse-torrent' import { logger } from '@server/helpers/logger' run()