From 868fce62f86812759ccedccf7634236ac3701d9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 3 Jun 2021 18:10:56 +0200 Subject: fetch -> load avoid confusion with AP fetch functions --- server/lib/model-loaders/actor.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'server/lib/model-loaders/actor.ts') diff --git a/server/lib/model-loaders/actor.ts b/server/lib/model-loaders/actor.ts index 234cb344f..1355d8ee2 100644 --- a/server/lib/model-loaders/actor.ts +++ b/server/lib/model-loaders/actor.ts @@ -2,15 +2,16 @@ import { ActorModel } from '../../models/actor/actor' import { MActorAccountChannelId, MActorFull } from '../../types/models' -type ActorFetchByUrlType = 'all' | 'association-ids' +type ActorLoadByUrlType = 'all' | 'association-ids' -function fetchActorByUrl (url: string, fetchType: ActorFetchByUrlType): Promise { +function loadActorByUrl (url: string, fetchType: ActorLoadByUrlType): Promise { if (fetchType === 'all') return ActorModel.loadByUrlAndPopulateAccountAndChannel(url) if (fetchType === 'association-ids') return ActorModel.loadByUrl(url) } export { - ActorFetchByUrlType, - fetchActorByUrl + ActorLoadByUrlType, + + loadActorByUrl } -- cgit v1.2.3