parent
48ea805999
commit
5c3a56b283
10 changed files with 42 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
|||
import define from '../define';
|
||||
import redis from '../../../db/redis';
|
||||
import { redisClient } from '../../../db/redis';
|
||||
import config from '../../../config';
|
||||
|
||||
export const meta = {
|
||||
|
@ -13,7 +13,7 @@ export const meta = {
|
|||
|
||||
export default define(meta, (ps, user) => {
|
||||
return new Promise((res, rej) => {
|
||||
redis.pubsub('numsub', config.host, (_, x) => {
|
||||
redisClient.pubsub('numsub', config.host, (_, x) => {
|
||||
res({
|
||||
count: x[1]
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue