Skip to content

Commit 031e537

Browse files
committed
Remove decayed record.
1 parent f37b819 commit 031e537

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/Discapp.Worker/Worker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ private async Task FilterOldRecords(ApplicationDbContext dbContext, Cancellation
154154
RecordID = oldRecord.RecordID
155155
};
156156
dbContext.Queue.Add(newQueueItem);
157+
dbContext.Records.Remove(oldRecord);
157158
}
158159
}
159160
await dbContext.SaveChangesAsync(stoppingToken);

0 commit comments

Comments
 (0)