Calling a module from job scheduler

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); 

}

See the article Corvid: Scheduling Recurring Jobs for information. To quote from this article, “The code your job runs can be any backend function.”

A jsw file is a special file that can be called from frontend code. You can interface with Zapier in a js file just as you would in a jsw file.

thank you. Any idea why my code below doesn’t work? The function works well, I made sure before.
How do I call the function file if it is inside backend (no folder) -
“file.function” or “/file.function”?