summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-12 06:12:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-12 06:12:22 +0900
commitc84500d91431989619a4597d582fd227bb3f5f0b (patch)
tree0f99fdb6d893c6ba918f336ed0a892e5d4b2f31c /src
parent10.48.0 (diff)
downloadmisskey-c84500d91431989619a4597d582fd227bb3f5f0b.tar.gz
misskey-c84500d91431989619a4597d582fd227bb3f5f0b.tar.bz2
misskey-c84500d91431989619a4597d582fd227bb3f5f0b.zip
Clean up
Diffstat (limited to 'src')
-rw-r--r--src/chart/index.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/chart/index.ts b/src/chart/index.ts
index 0c8bccb3b5..b59ad7602b 100644
--- a/src/chart/index.ts
+++ b/src/chart/index.ts
@@ -66,19 +66,6 @@ export default abstract class Chart<T> {
} else {
this.collection.createIndex({ span: -1, date: -1 }, { unique: true });
}
-
- //#region 後方互換性のため
- this.collection.find({ span: 'day' }, { fields: { _id: true, date: true } }).then(logs => {
- logs.forEach(log => {
- this.collection.update({ _id: log._id }, { $set: { date: utc(log.date).hour(0).toDate() } });
- });
- });
- this.collection.find({ span: 'hour' }, { fields: { _id: true, date: true } }).then(logs => {
- logs.forEach(log => {
- this.collection.update({ _id: log._id }, { $set: { date: utc(log.date).toDate() } });
- });
- });
- //#endregion
}
@autobind