From 25ed141c7c7631ef21d8764c1163fbf8a6591391 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Nov 2017 11:31:15 +0100 Subject: Put activity pub sends inside transactions --- server/models/video/video-channel-share-interface.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/models/video/video-channel-share-interface.ts') diff --git a/server/models/video/video-channel-share-interface.ts b/server/models/video/video-channel-share-interface.ts index bcb3a0e24..0482e8297 100644 --- a/server/models/video/video-channel-share-interface.ts +++ b/server/models/video/video-channel-share-interface.ts @@ -1,11 +1,12 @@ import * as Bluebird from 'bluebird' import * as Sequelize from 'sequelize' +import { Transaction } from 'sequelize' import { AccountInstance } from '../account/account-interface' import { VideoChannelInstance } from './video-channel-interface' export namespace VideoChannelShareMethods { - export type LoadAccountsByShare = (videoChannelId: number) => Bluebird - export type Load = (accountId: number, videoId: number) => Bluebird + export type LoadAccountsByShare = (videoChannelId: number, t: Transaction) => Bluebird + export type Load = (accountId: number, videoId: number, t: Transaction) => Bluebird } export interface VideoChannelShareClass { -- cgit v1.2.3