Table,
UpdatedAt
} from 'sequelize-typescript'
-import { getLowercaseExtension } from '@server/helpers/core-utils'
import { ModelCache } from '@server/models/model-cache'
-import { AttributesOnly } from '@shared/core-utils'
+import { getLowercaseExtension } from '@shared/core-utils'
+import { AttributesOnly } from '@shared/typescript-utils'
import { ActivityIconObject, ActivityPubActorType } from '../../../shared/models/activitypub'
import { ActorImage } from '../../../shared/models/actors/actor-image.model'
import { activityPubContextify } from '../../helpers/activitypub'
}, { where, transaction })
}
- static loadAccountActorByVideoId (videoId: number): Promise<MActor> {
+ static loadAccountActorByVideoId (videoId: number, transaction: Transaction): Promise<MActor> {
const query = {
include: [
{
}
]
}
- ]
+ ],
+ transaction
}
return ActorModel.unscoped().findOne(query)