Pushing specific parameters value

For the second param, you can also put in a path parameter. This will cause GenieACS to refresh the path if the timestamp is older than the given value.

const twoDaysAgo = Date.now() - (86400 * 2);
const oneDayAgo = Date.now() - 86400;

declare('Some.Path', { path: twoDaysAgo, value: oneDayAgo}, {value: 'someValue'});

This will cause GenieACS to refresh the path if its older than two days, or refresh the value if its older than 1 day.

1 Like