Skip to content

Commit 76bf0d3

Browse files
committed
fix: trigger first run used items
1 parent aaea49e commit 76bf0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/runner/src/services/runner.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class RunnerService {
257257
newItems = triggerItems.slice(0, 1)
258258
// on the first (non test) run, store all the existing IDs so we don't use them (critical for items without createdAt)
259259
if (!workflowTrigger.lastId && !opts?.reRunItems) {
260-
for (const newItem of triggerItems) {
260+
for (const newItem of triggerItems.slice(1)) {
261261
try {
262262
await this.workflowUsedIdService.createOne({
263263
workflow: workflowTrigger.workflow,

0 commit comments

Comments
 (0)