import { sendUndoCacheFile } from './activitypub/send'
import { Transaction } from 'sequelize'
import { getServerActor } from '../helpers/utils'
import { sendUndoCacheFile } from './activitypub/send'
import { Transaction } from 'sequelize'
import { getServerActor } from '../helpers/utils'
const serverActor = await getServerActor()
// Local cache, send undo to remote instances
const serverActor = await getServerActor()
// Local cache, send undo to remote instances
-async function removeRedundancyOf (serverId: number) {
- const videosRedundancy = await VideoRedundancyModel.listLocalOfServer(serverId)
+async function removeRedundanciesOfServer (serverId: number) {
+ const redundancies = await VideoRedundancyModel.listLocalOfServer(serverId)