Skip to content

Commit ca244c0

Browse files
committed
feat: Log error message when postRead is not found
1 parent dd6e2ed commit ca244c0

File tree

1 file changed

+2
-1
lines changed
  • apps/cron/src/services/PostReadService

1 file changed

+2
-1
lines changed

apps/cron/src/services/PostReadService/index.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class PostReadService implements Service {
4040
const postRead = await this.findById(postReadId)
4141

4242
if (!postRead) {
43-
throw new NotFoundError('Not found PostRead')
43+
console.log(`Not found postReadId: ${postReadId}`)
44+
return
4445
}
4546

4647
await this.db.postRead.delete({

0 commit comments

Comments
 (0)