Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit cba69eef authored by I Gede Aditya Premana Putra's avatar I Gede Aditya Premana Putra
Browse files

Fix nil delete

parent d8d8c9a9
No related branches found
No related tags found
No related merge requests found
Pipeline #135424 passed
......@@ -33,8 +33,9 @@ proc workerProc() {.thread.} =
await stompClient.message("/queue/" & cron.reminder.username, $$c.reminder.toNotificationDTO)
logger.log lvlInfo, &"Reminder {cron.id} sent to {cron.reminder.username} for time {targetTime} at ", now()
dispatchedReminders.excl cron.id
var reminder = cron.reminder
dbConn.delete(cron)
dbConn.delete(cron.reminder)
dbConn.delete(reminder)
break
await sleepAsync nextBeat.inMilliseconds.int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment