mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
[noImplicitAny: true] src/services/note
This commit is contained in:
parent
8c40917cc2
commit
9d65415fdc
@ -33,7 +33,7 @@ class NotificationManager {
|
|||||||
reason: Reason;
|
reason: Reason;
|
||||||
}> = [];
|
}> = [];
|
||||||
|
|
||||||
constructor(user, note) {
|
constructor(user: IUser, note: any) {
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.note = note;
|
this.note = note;
|
||||||
}
|
}
|
||||||
@ -451,7 +451,7 @@ export default async (user: IUser, data: {
|
|||||||
// $ne: note._id
|
// $ne: note._id
|
||||||
// }
|
// }
|
||||||
//});
|
//});
|
||||||
const existRenote = null;
|
const existRenote: INote | null = null;
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
if (!existRenote) {
|
if (!existRenote) {
|
||||||
|
@ -36,7 +36,7 @@ export default async (user: IUser, note: INote, reaction: string) => new Promise
|
|||||||
|
|
||||||
res();
|
res();
|
||||||
|
|
||||||
const inc = {};
|
const inc: {[key: string]: number} = {};
|
||||||
inc[`reactionCounts.${reaction}`] = 1;
|
inc[`reactionCounts.${reaction}`] = 1;
|
||||||
|
|
||||||
// Increment reactions count
|
// Increment reactions count
|
||||||
|
Loading…
Reference in New Issue
Block a user