wisdom #48

Merged
bragaz_rexita merged 3 commits from wisdom into main 2026-04-30 02:48:06 +00:00
Showing only changes of commit 3428ad6d1f - Show all commits

View File

@@ -249,8 +249,12 @@ class NotifikasiWaService {
} }
async loadReminder() { async loadReminder() {
if (!fs.existsSync(filePath)) return []; try {
return JSON.parse(fs.readFileSync(filePath)); const raw = await fs.readFile(filePath, 'utf-8');
return raw ? JSON.parse(raw) : [];
} catch (err) {
return []; // file belum ada
}
} }
async deleteReminder(id) { async deleteReminder(id) {