Skip to content
Snippets Groups Projects
Commit 1da7be63 authored by syuilo's avatar syuilo
Browse files

chore: remove unused code

parent e9190599
No related branches found
No related tags found
No related merge requests found
......@@ -67,16 +67,6 @@ export default class InstanceChart extends Chart<typeof schema> {
@autobind
public async updateNote(host: string, note: Note, isAdditional: boolean): Promise<void> {
const diffs = {} as Record<string, unknown>;
if (note.replyId != null) {
diffs.reply = isAdditional ? 1 : -1;
} else if (note.renoteId != null) {
diffs.renote = isAdditional ? 1 : -1;
} else {
diffs.normal = isAdditional ? 1 : -1;
}
await this.commit({
'notes.total': isAdditional ? 1 : -1,
'notes.inc': isAdditional ? 1 : 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment