mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 20:45:13 +00:00
test
This commit is contained in:
parent
e7cdc53c7b
commit
62bce14709
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue