diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-15 17:34:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-19 10:53:16 +0100 |
commit | a7d647c4403f8774106f485e8d9323158454e111 (patch) | |
tree | fcba0e03ce3ac2bf1cc7607a1643ffd1bc206c2b /server/initializers/migrations/0100-activitypub.ts | |
parent | 50d6de9c286abcb34ff4234d56d9cbb803db7665 (diff) | |
download | PeerTube-a7d647c4403f8774106f485e8d9323158454e111.tar.gz PeerTube-a7d647c4403f8774106f485e8d9323158454e111.tar.zst PeerTube-a7d647c4403f8774106f485e8d9323158454e111.zip |
Add dirty migration :/
Diffstat (limited to 'server/initializers/migrations/0100-activitypub.ts')
-rw-r--r-- | server/initializers/migrations/0100-activitypub.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/migrations/0100-activitypub.ts b/server/initializers/migrations/0100-activitypub.ts index d896b3205..8c5198f85 100644 --- a/server/initializers/migrations/0100-activitypub.ts +++ b/server/initializers/migrations/0100-activitypub.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { values } from 'lodash' | 1 | import { values } from 'lodash' |
2 | import * as Sequelize from 'sequelize' | 2 | import * as Sequelize from 'sequelize' |
3 | import { createPrivateAndPublicKeys } from '../../helpers/peertube-crypto' | 3 | import { createPrivateAndPublicKeys } from '../../helpers/peertube-crypto' |
4 | import { shareVideoByServer } from '../../lib/activitypub/share' | 4 | import { shareVideoByServerAndChannel } from '../../lib/activitypub/share' |
5 | import { getVideoActivityPubUrl, getVideoChannelActivityPubUrl } from '../../lib/activitypub/url' | 5 | import { getVideoActivityPubUrl, getVideoChannelActivityPubUrl } from '../../lib/activitypub/url' |
6 | import { createLocalAccountWithoutKeys } from '../../lib/user' | 6 | import { createLocalAccountWithoutKeys } from '../../lib/user' |
7 | import { ApplicationModel } from '../../models/application/application' | 7 | import { ApplicationModel } from '../../models/application/application' |
@@ -197,7 +197,7 @@ async function up (utils: { | |||
197 | }) | 197 | }) |
198 | 198 | ||
199 | for (const video of videos) { | 199 | for (const video of videos) { |
200 | await shareVideoByServer(video, undefined) | 200 | await shareVideoByServerAndChannel(video, undefined) |
201 | } | 201 | } |
202 | } | 202 | } |
203 | } | 203 | } |