Refactoring

This commit is contained in:
syuilo 2018-10-23 05:36:35 +09:00
parent c8b6b6e44f
commit 7c7f32d9a6
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
32 changed files with 1125 additions and 1111 deletions

View file

@ -1,6 +1,6 @@
import { IUser } from '../models/user';
import Hashtag from '../models/hashtag';
import { hashtagStats } from './stats';
import hashtagChart from '../chart/hashtag';
export default async function(user: IUser, tag: string) {
tag = tag.toLowerCase();
@ -27,5 +27,5 @@ export default async function(user: IUser, tag: string) {
});
}
hashtagStats.update(tag, user._id);
hashtagChart.update(tag, user._id);
}