mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
chore: remove unused code
This commit is contained in:
parent
dbc974c1a6
commit
74f66c6a62
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user