summaryrefslogtreecommitdiff
path: root/src/services/chart/core.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-06-27 18:04:09 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-06-27 18:04:09 +0900
commit952789cc1eb77e2f2d54b489c016b56bac812ab7 (patch)
tree47aae1704f1617f9ae081291547085ba04677a2e /src/services/chart/core.ts
parent11.23.1 (diff)
downloadsharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.gz
sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.bz2
sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.zip
Use as const
#5089
Diffstat (limited to 'src/services/chart/core.ts')
-rw-r--r--src/services/chart/core.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts
index 6564ef7813..d5fd9a5c5c 100644
--- a/src/services/chart/core.ts
+++ b/src/services/chart/core.ts
@@ -8,7 +8,7 @@ import * as moment from 'moment';
import * as nestedProperty from 'nested-property';
import autobind from 'autobind-decorator';
import Logger from '../logger';
-import { Schema, bool, types } from '../../misc/schema';
+import { Schema } from '../../misc/schema';
import { EntitySchema, getRepository, Repository, LessThan, MoreThanOrEqual } from 'typeorm';
import { isDuplicateKeyValueError } from '../../misc/is-duplicate-key-value-error';
@@ -462,8 +462,8 @@ export function convertLog(logSchema: Schema): Schema {
if (v.type === 'number') {
v.type = 'array';
v.items = {
- type: types.number,
- optional: bool.false, nullable: bool.false,
+ type: 'number' as const,
+ optional: false as const, nullable: false as const,
};
} else if (v.type === 'object') {
for (const k of Object.keys(v.properties!)) {