Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 5x 5x | import { AsyncLocalStorage } from "node:async_hooks";
import { Global, Module, Provider } from "@nestjs/common";
import { Repositories } from "../types/constants";
import { AlsService } from "./als.service";
import { AlsStore } from "./types";
export const AlsProvider: Provider<AsyncLocalStorage<AlsStore>> = {
provide: Repositories.ALS,
useValue: new AsyncLocalStorage<AlsStore>(),
};
@Global()
@Module({
providers: [AlsService, AlsProvider],
exports: [AlsProvider],
})
export class AlsModule {}
|