Refactoring
This commit is contained in:
parent
c8b6b6e44f
commit
7c7f32d9a6
32 changed files with 1125 additions and 1111 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue