import { addMethodsToModel } from '../utils'
import {
- RequestToPodClass,
RequestToPodInstance,
RequestToPodAttributes,
// ---------------------------------------------------------------------------
-removeByRequestIdsAndPod = function (requestsIds: number[], podId: number, callback?: RequestToPodMethods.RemoveByRequestIdsAndPodCallback) {
- if (!callback) callback = function () { /* empty */ }
-
+removeByRequestIdsAndPod = function (requestsIds: number[], podId: number) {
const query = {
where: {
requestId: {
}
}
- RequestToPod.destroy(query).asCallback(callback)
+ return RequestToPod.destroy(query)
}