I need that the data in getWorkflowStaticData persist only one day

I’m trying to check dailly if some students complete two conditions, and if then complete the condition I send them a graphic with his status. I check the condition each 42 minutes. I use the getWorkflowStaticData function to every check, but dailly I need to restart the data storage in the getWorkflowStaticData function to start from 0.

Can anyone help me please?

Here is my workflow:

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.175.0
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

You could store the date with each record and on each run remove dates == yesterday before processing.

BTW that’s also a very old n8n version.

1 Like

I’m new in JS, can you explain me a little more how can I implement that?

Someone trying to achieve a similar goal here:

1 Like

have u made it?