diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/update-host.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts index eccf203ea..4551a4702 100755 --- a/scripts/update-host.ts +++ b/scripts/update-host.ts | |||
@@ -1,14 +1,14 @@ | |||
1 | import { getServerAccount } from '../server/helpers' | 1 | import { getServerActor } from '../server/helpers' |
2 | import { initDatabaseModels } from '../server/initializers' | 2 | import { initDatabaseModels } from '../server/initializers' |
3 | import { AccountFollowModel } from '../server/models/account/account-follow' | 3 | import { ActorFollowModel } from '../server/models/activitypub/actor-follow' |
4 | import { VideoModel } from '../server/models/video/video' | 4 | import { VideoModel } from '../server/models/video/video' |
5 | 5 | ||
6 | initDatabaseModels(true) | 6 | initDatabaseModels(true) |
7 | .then(() => { | 7 | .then(() => { |
8 | return getServerAccount() | 8 | return getServerActor() |
9 | }) | 9 | }) |
10 | .then(serverAccount => { | 10 | .then(serverAccount => { |
11 | return AccountFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined) | 11 | return ActorFollowModel.listAcceptedFollowingUrlsForApi([ serverAccount.id ], undefined) |
12 | }) | 12 | }) |
13 | .then(res => { | 13 | .then(res => { |
14 | return res.total > 0 | 14 | return res.total > 0 |