delete: api is ready & not read

This commit is contained in:
2025-12-18 13:04:57 +07:00
parent dd5e1cc713
commit 5e7de6d144
4 changed files with 12 additions and 269 deletions

View File

@@ -1,7 +1,5 @@
const {
getAllNotificationDb,
getAllNotificationIsReadDb,
getAllNotificationIsNotReadDb,
getNotificationByIdDb,
InsertNotificationErrorDb,
getReaderNotificationErrorDb,
@@ -45,32 +43,6 @@ class NotificationService {
}
}
static async getAllNotificationIsRead(param) {
try {
const results = await getAllNotificationIsReadDb(param);
results.data.map(element => {
});
return results;
} catch (error) {
throw new ErrorHandler(error.statusCode, error.message);
}
}
static async getAllNotificationIsNotRead(param) {
try {
const results = await getAllNotificationIsNotReadDb(param);
results.data.map(element => {
});
return results;
} catch (error) {
throw new ErrorHandler(error.statusCode, error.message);
}
}
static async createNotificationError(data) {
try {
if (!data || typeof data !== 'object') data = {};