delete: api is ready & not read
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user