Skip to content

Commit

Permalink
Send x-inngest-sync-kind headers for all types of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Sep 13, 2024
1 parent 95caa67 commit f3d3a54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/inngest/src/components/InngestCommHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1189,6 +1189,7 @@ export class InngestCommHandler<
body: stringify(body),
headers: {
"Content-Type": "application/json",
[headerKeys.InngestSyncKind]: syncKind.InBand,
},
version: undefined,
};
Expand All @@ -1206,6 +1207,7 @@ export class InngestCommHandler<
body: stringify({ message, modified }),
headers: {
"Content-Type": "application/json",
[headerKeys.InngestSyncKind]: syncKind.OutOfBand,
},
version: undefined,
};
Expand Down Expand Up @@ -1610,7 +1612,10 @@ export class InngestCommHandler<
options: {
method: "POST",
body: stringify(body),
headers: getHeaders(),
headers: {
...getHeaders(),
[headerKeys.InngestSyncKind]: syncKind.OutOfBand,
},
redirect: "follow",
},
});
Expand Down

0 comments on commit f3d3a54

Please sign in to comment.