diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-26 10:45:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-26 11:02:04 +0200 |
commit | 2cebd797014561ebc0bfee07ee8b5d83820adb66 (patch) | |
tree | fe912e29c7321c3c29e94691520615a741899e71 /server/helpers/utils.ts | |
parent | c1e791bad0b079af67398f6407221e6dcbb573dd (diff) | |
download | PeerTube-2cebd797014561ebc0bfee07ee8b5d83820adb66.tar.gz PeerTube-2cebd797014561ebc0bfee07ee8b5d83820adb66.tar.zst PeerTube-2cebd797014561ebc0bfee07ee8b5d83820adb66.zip |
Fix last commit
Diffstat (limited to 'server/helpers/utils.ts')
-rw-r--r-- | server/helpers/utils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts index 7ff1556e3..cfb427570 100644 --- a/server/helpers/utils.ts +++ b/server/helpers/utils.ts | |||
@@ -144,7 +144,8 @@ let serverActor: ActorModel | |||
144 | async function getServerActor () { | 144 | async function getServerActor () { |
145 | if (serverActor === undefined) { | 145 | if (serverActor === undefined) { |
146 | const application = await ApplicationModel.load() | 146 | const application = await ApplicationModel.load() |
147 | if (!application) throw Error('Could not application.') | 147 | if (!application) throw Error('Could not load Application from database.') |
148 | |||
148 | serverActor = application.Account.Actor | 149 | serverActor = application.Account.Actor |
149 | } | 150 | } |
150 | 151 | ||