add: await in data filtering logic #50
@@ -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) => {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user