summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-18 11:17:05 +0900
committerGitHub <noreply@github.com>2021-03-18 11:17:05 +0900
commit4f249159d310d4296753fcfe8e2bbd390fd9002b (patch)
tree9b483af801a15048265531bcba811c5eb185fb2d /src/db
parentadd note (diff)
downloadmisskey-4f249159d310d4296753fcfe8e2bbd390fd9002b.tar.gz
misskey-4f249159d310d4296753fcfe8e2bbd390fd9002b.tar.bz2
misskey-4f249159d310d4296753fcfe8e2bbd390fd9002b.zip
Improve chart performance (#7360)
* wip * wip * wip * wip * wip * Update chart.ts * wip * Improve server performance * wip * wip
Diffstat (limited to 'src/db')
-rw-r--r--src/db/postgre.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/postgre.ts b/src/db/postgre.ts
index 2f3c910163..831e5e0592 100644
--- a/src/db/postgre.ts
+++ b/src/db/postgre.ts
@@ -1,3 +1,7 @@
+// https://github.com/typeorm/typeorm/issues/2400
+const types = require('pg').types;
+types.setTypeParser(20, Number);
+
import { createConnection, Logger, getConnection } from 'typeorm';
import config from '../config';
import { entities as charts } from '../services/chart/entities';