]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/request/request-to-pod-interface.ts
Don't cache torrent files
[github/Chocobozzz/PeerTube.git] / server / models / request / request-to-pod-interface.ts
index 6d75ca6e51f6986e7ce4fc540cbb684e7939c836..7ca99f4d4955a9340230c476544354ce52986fed 100644 (file)
@@ -1,11 +1,13 @@
 import * as Sequelize from 'sequelize'
+import * as Promise from 'bluebird'
+
+import { AbstractRequestToPodClass } from './abstract-request-interface'
 
 export namespace RequestToPodMethods {
-  export type RemoveByRequestIdsAndPodCallback = (err: Error) => void
-  export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number, callback?: RemoveByRequestIdsAndPodCallback) => void
+  export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number) => Promise<number>
 }
 
-export interface RequestToPodClass {
+export interface RequestToPodClass extends AbstractRequestToPodClass {
   removeByRequestIdsAndPod: RequestToPodMethods.RemoveByRequestIdsAndPod
 }