Skip to content

Commit

Permalink
fix: even when there are no errors in the media, invalid media record…
Browse files Browse the repository at this point in the history
…s are still created
  • Loading branch information
ltaoo committed Jun 5, 2024
1 parent 83e414e commit 9cb0816
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domains/schedule/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ export class ScheduleTask {
});
return;
}
if (tips.length === 0) {
return;
}
await this.store.prisma.invalid_media.create({
data: {
id: r_id(),
Expand Down

0 comments on commit 9cb0816

Please sign in to comment.