-function sendVideoRateChangeToFollowers (account: AccountInstance, video: VideoInstance, likes: number, dislikes: number, t: Transaction) {
- const tasks: Promise<any>[] = []
+async function sendVideoRateChangeToFollowers (
+ account: AccountInstance,
+ video: VideoInstance,
+ likes: number,
+ dislikes: number,
+ t: Transaction
+) {
+ // Keep the order: first we undo and then we create