Implement announce
And bug fixes
This commit is contained in:
@ -112,7 +112,7 @@ export const pack = async (
|
||||
_note = deepcopy(note);
|
||||
}
|
||||
|
||||
if (!_note) throw 'invalid note arg.';
|
||||
if (!_note) throw `invalid note arg ${note}`;
|
||||
|
||||
const id = _note._id;
|
||||
|
||||
|
@ -51,9 +51,6 @@ export interface INotification {
|
||||
|
||||
/**
|
||||
* Pack a notification for API response
|
||||
*
|
||||
* @param {any} notification
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
export const pack = (notification: any) => new Promise<any>(async (resolve, reject) => {
|
||||
let _notification: any;
|
||||
|
Reference in New Issue
Block a user