I have an issue with the following functions i want to migrate the code base from v1 to v2, the docs mention require and my env use imports, in this migration i suppose to add the run with parameter as first arg but nothing is working.
import { onCall } from 'firebase-functions/v2/https';
export const deleteData = onCall(
{
timeoutSeconds: 540, // 540 seconds = 9 minutes
memory: '2GB', // 128MB// 256MB // 512MB // 1GB // 2GB
},
async (data: any, context: any) => {
// code
return null;
}
);