]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/models/request-to-pod.js
3 // ---------------------------------------------------------------------------
5 module
.exports = function (sequelize
, DataTypes
) {
6 const RequestToPod
= sequelize
.define('RequestToPod', {}, {
9 fields: [ 'requestId' ]
15 fields: [ 'requestId', 'podId' ],
20 removeByRequestIdsAndPod
27 // ---------------------------------------------------------------------------
29 function removeByRequestIdsAndPod (requestsIds
, podId
, callback
) {
30 if (!callback
) callback = function () {}
41 this.destroy(query
).asCallback(callback
)