|
@@ -4,7 +4,7 @@ import { FilterType, GetData } from "./plugins/getData";
|
|
|
|
|
|
export default abstract class GetDataJob extends DataModuleJob {
|
|
|
protected override async _validate() {
|
|
|
- if (typeof this._payload !== "object")
|
|
|
+ if (typeof this._payload !== "object" || this._payload === null)
|
|
|
throw new Error("Payload must be an object");
|
|
|
|
|
|
if (typeof this._payload.page !== "number")
|