@pipedream/pushshift_reddit_search
Version:
Pipedream Pushshift Reddit Search Components
26 lines (24 loc) • 616 B
JavaScript
import pushshift from "../../pushshift_reddit_search.app.mjs";
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";
export default {
props: {
pushshift,
db: "$.service.db",
timer: {
label: "Polling schedule",
description: "Pipedream will poll the Pushshift.io API on this schedule.",
type: "$.interface.timer",
default: {
intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
},
},
},
methods: {
_getAfter() {
return this.db.get("after");
},
_setAfter(after) {
this.db.set("after", after);
},
},
};