aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/server-commands/miscs/sql-command.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/server-commands/miscs/sql-command.ts')
-rw-r--r--shared/server-commands/miscs/sql-command.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/server-commands/miscs/sql-command.ts b/shared/server-commands/miscs/sql-command.ts
index b0d9ce56d..f163cc8c9 100644
--- a/shared/server-commands/miscs/sql-command.ts
+++ b/shared/server-commands/miscs/sql-command.ts
@@ -1,4 +1,5 @@
1import { QueryTypes, Sequelize } from 'sequelize' 1import { QueryTypes, Sequelize } from 'sequelize'
2import { forceNumber } from '@shared/core-utils'
2import { AbstractCommand } from '../shared' 3import { AbstractCommand } from '../shared'
3 4
4export class SQLCommand extends AbstractCommand { 5export class SQLCommand extends AbstractCommand {
@@ -63,7 +64,7 @@ export class SQLCommand extends AbstractCommand {
63 64
64 if (!total) return 0 65 if (!total) return 0
65 66
66 return parseInt(total + '', 10) 67 return forceNumber(total)
67 } 68 }
68 69
69 getActorImage (filename: string) { 70 getActorImage (filename: string) {