From 4b216cd192789f0acfa537276e89aec96b6e6470 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 12 Nov 2018 06:12:22 +0900 Subject: [PATCH] Clean up --- src/chart/index.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/chart/index.ts b/src/chart/index.ts index 0c8bccb3b..b59ad7602 100644 --- a/src/chart/index.ts +++ b/src/chart/index.ts @@ -66,19 +66,6 @@ export default abstract class Chart { } 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