await videoRedundancy.destroy({ transaction: t })
}
-async function removeRedundancyOf (serverId: number) {
- const videosRedundancy = await VideoRedundancyModel.listLocalOfServer(serverId)
+async function removeRedundanciesOfServer (serverId: number) {
+ const redundancies = await VideoRedundancyModel.listLocalOfServer(serverId)
- for (const redundancy of videosRedundancy) {
+ for (const redundancy of redundancies) {
await removeVideoRedundancy(redundancy)
}
}
// ---------------------------------------------------------------------------
export {
- removeRedundancyOf,
+ removeRedundanciesOfServer,
removeVideoRedundancy
}