[noImplicitAny: true] src/services/note
This commit is contained in:
parent
248d97b8f7
commit
271e3088d0
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ class NotificationManager {
|
|||
reason: Reason;
|
||||
}> = [];
|
||||
|
||||
constructor(user, note) {
|
||||
constructor(user: IUser, note: any) {
|
||||
this.user = user;
|
||||
this.note = note;
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ export default async (user: IUser, data: {
|
|||
// $ne: note._id
|
||||
// }
|
||||
//});
|
||||
const existRenote = null;
|
||||
const existRenote: INote | null = null;
|
||||
//#endregion
|
||||
|
||||
if (!existRenote) {
|
||||
|
|
|
@ -36,7 +36,7 @@ export default async (user: IUser, note: INote, reaction: string) => new Promise
|
|||
|
||||
res();
|
||||
|
||||
const inc = {};
|
||||
const inc: {[key: string]: number} = {};
|
||||
inc[`reactionCounts.${reaction}`] = 1;
|
||||
|
||||
// Increment reactions count
|
||||
|
|
Loading…
Reference in a new issue