From 6e34e77372bd74c85ebf5a6b4214c818231dbe8b Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 8 Apr 2018 06:55:26 +0900 Subject: Implement announce And bug fixes --- src/models/note.ts | 2 +- src/models/notification.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/models') diff --git a/src/models/note.ts b/src/models/note.ts index 9b33bb76f1..f509fa66c8 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -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; diff --git a/src/models/notification.ts b/src/models/notification.ts index 17144d7ee8..d5ca7135b7 100644 --- a/src/models/notification.ts +++ b/src/models/notification.ts @@ -51,9 +51,6 @@ export interface INotification { /** * Pack a notification for API response - * - * @param {any} notification - * @return {Promise} */ export const pack = (notification: any) => new Promise(async (resolve, reject) => { let _notification: any; -- cgit v1.2.3-freya