mirror of
https://github.com/hotomoe/hotomoe
synced 2024-11-25 15:46:17 +09:00
test
This commit is contained in:
parent
e7cdc53c7b
commit
62bce14709
@ -1,5 +1,5 @@
|
||||
import { Global, Inject, Module } from '@nestjs/common';
|
||||
import { Redis } from 'ioredis';
|
||||
import Redis from 'ioredis';
|
||||
import { DataSource } from 'typeorm';
|
||||
import { createRedisConnection } from '@/redis.js';
|
||||
import { DI } from './di-symbols.js';
|
||||
@ -49,8 +49,8 @@ const $redisSubscriber: Provider = {
|
||||
export class GlobalModule implements OnApplicationShutdown {
|
||||
constructor(
|
||||
@Inject(DI.db) private db: DataSource,
|
||||
@Inject(DI.redis) private redisClient: Redis,
|
||||
@Inject(DI.redisSubscriber) private redisSubscriber: Redis,
|
||||
@Inject(DI.redis) private redisClient: Redis.Redis,
|
||||
@Inject(DI.redisSubscriber) private redisSubscriber: Redis.Redis,
|
||||
) {}
|
||||
|
||||
async onApplicationShutdown(signal: string): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user