mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-04 11:36:44 -06:00
22 lines
391 B
TypeScript
22 lines
391 B
TypeScript
import define from '../define';
|
|
import { redisClient } from '../../../db/redis';
|
|
import config from '@/config';
|
|
|
|
export const meta = {
|
|
tags: ['meta'],
|
|
|
|
requireCredential: false as const,
|
|
|
|
params: {
|
|
}
|
|
};
|
|
|
|
export default define(meta, (ps, user) => {
|
|
return new Promise((res, rej) => {
|
|
redisClient.pubsub('numsub', config.host, (_, x) => {
|
|
res({
|
|
count: x[1]
|
|
});
|
|
});
|
|
});
|
|
});
|