removed type from jobs
This commit is contained in:
parent
e924c8b6bc
commit
7b0c7d12fa
2 changed files with 0 additions and 4 deletions
|
|
@ -73,7 +73,6 @@ async function processDirect<T>(
|
|||
const jobs = items.map((item, index) => ({
|
||||
name: 'process-item',
|
||||
data: {
|
||||
type: 'process-item',
|
||||
handler: options.handler || 'generic',
|
||||
operation: options.operation || 'process-item',
|
||||
payload: item, // Just the item directly - no wrapper!
|
||||
|
|
@ -128,7 +127,6 @@ async function processBatched<T>(
|
|||
return {
|
||||
name: 'process-batch',
|
||||
data: {
|
||||
type: 'process-batch',
|
||||
handler: options.handler || 'generic',
|
||||
operation: 'process-batch-items',
|
||||
payload: {
|
||||
|
|
@ -190,7 +188,6 @@ export async function processBatchJob(
|
|||
const jobs = items.map((item: unknown, index: number) => ({
|
||||
name: 'process-item',
|
||||
data: {
|
||||
type: 'process-item',
|
||||
handler: options.handler || 'generic',
|
||||
operation: options.operation || 'generic',
|
||||
payload: item, // Just the item directly!
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
// Types for queue operations
|
||||
export interface JobData<T = unknown> {
|
||||
type?: string;
|
||||
handler: string;
|
||||
operation: string;
|
||||
payload: T;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue