Skip to content

Commit

Permalink
fix: missing cache in upcoming, #137
Browse files Browse the repository at this point in the history
  • Loading branch information
naimo84 committed May 7, 2022
1 parent a33e849 commit 4697f0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nodes/ical-upcoming.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { NodeMessage, NodeMessageInFlow } from 'node-red';
import { CronJob } from 'cron';
import { IcalEventsConfig } from './ical-config';
import * as NodeCache from 'node-cache';
import { getConfig, getICal, CalEvent, IcalNode } from './helper';
var parser = require('cron-parser');

module.exports = function (RED: any) {
function upcomingNode(n: any) {
RED.nodes.createNode(this, n);
let node: IcalNode = this;
node.cache = new NodeCache();
node.red = RED;
node.msg = {};

Expand Down

0 comments on commit 4697f0e

Please sign in to comment.