add: await in data filtering logic

This commit is contained in:
mhmmdafif
2026-04-30 15:22:42 +07:00
parent 7940646a1f
commit 3c098d1c69

View File

@@ -281,7 +281,7 @@ class NotifikasiWaService {
async runReminder() { async runReminder() {
setInterval(async () => { setInterval(async () => {
const now = new Date(); const now = new Date();
let data = this.loadReminder(); let data = await this.loadReminder();
data = data?.filter(async (item) => { data = data?.filter(async (item) => {