Provide Redis version

This commit is contained in:
syuilo
2019-06-20 22:55:57 +09:00
parent 2c1932faa7
commit bd83939993
4 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import * as pkg from '../../../../package.json';
import { Emojis } from '../../../models';
import { types, bool } from '../../../misc/schema';
import { getConnection } from 'typeorm';
import redis from '../../../db/redis';
export const meta = {
stability: 'stable',
@ -116,6 +117,7 @@ export default define(meta, async (ps, me) => {
os: os.platform(),
node: process.version,
psql: await getConnection().query('SHOW server_version').then(x => x[0].server_version),
redis: redis.server_info.redis_version,
cpu: {
model: os.cpus()[0].model,