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