Properly handle multiple jobs per report
This commit is contained in:
@ -180,10 +180,9 @@ export async function onRequestPost(context: RequestContext) {
|
||||
const { current_user: currentUser } = context.data;
|
||||
if (filesToProcess.length)
|
||||
await context.env.DATA.put(
|
||||
`coconutjob_${reportId}`,
|
||||
`coconutdata_${reportId}`,
|
||||
JSON.stringify({
|
||||
attachments: filesToProcess,
|
||||
token: crypto.randomUUID(),
|
||||
}),
|
||||
{
|
||||
expirationTtl: 1800,
|
||||
|
Reference in New Issue
Block a user