Hi
I made a jobs scheduler and I need it to use a module (.jsw), not a .js because I want to send data threw Zapier once a day.
is it possible?
jobs.config:
{
“jobs”: [
{
“functionLocation”: “/dailyReport.report”,
“description”: “daily report”,
“executionConfig”: {
“time”: “11:14”
}
}
]
}
dailyReport.jsw:
import {usewebhook} from ‘backend/useWebhook.jsw’;
import wixData from ‘wix-data’;
export function report (){
let data = {“data”: “something”};
let url = “https://hooks.zapier.com/**********”;
usewebhook (data, url);
}