]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/actor.ts
Move transcoding files in their own directory
[github/Chocobozzz/PeerTube.git] / server / helpers / actor.ts
index 117548a60cd9db06a43317cff9190d8c0c96d4e1..a60d3ed5d06340c96d8cfb367cd62df5d807285b 100644 (file)
@@ -1,10 +1,10 @@
+
 import { ActorModel } from '../models/activitypub/actor'
-import * as Bluebird from 'bluebird'
-import { MActorFull, MActorAccountChannelId } from '../typings/models'
+import { MActorAccountChannelId, MActorFull } from '../types/models'
 
 type ActorFetchByUrlType = 'all' | 'association-ids'
 
-function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Bluebird<MActorFull | MActorAccountChannelId> {
+function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Promise<MActorFull | MActorAccountChannelId> {
   if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url)
 
   if (fetchType === 'association-ids') return ActorModel.loadByUrl(url)