Skip to content

Commit 6888ea6

Browse files
committed
Use options class as inject key for root/default options
1 parent 730a184 commit 6888ea6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/edgedb/edgedb.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { TransactionContext } from './transaction.context';
1818
imports: [EdgeDBSchemaAstModule],
1919
providers: [
2020
{
21-
provide: 'DEFAULT_OPTIONS',
21+
provide: Options,
2222
useValue: Options.defaults().withConfig({
2323
// Bump from 1 min, as needed by test suite.
2424
// It's probably because we open & do more with in the transaction

src/core/edgedb/options.context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Inject, Injectable, OnModuleDestroy } from '@nestjs/common';
1+
import { Injectable, OnModuleDestroy } from '@nestjs/common';
22
import { AsyncLocalStorage } from 'async_hooks';
33
import {
44
BehaviorSubject,
@@ -27,7 +27,7 @@ export class OptionsContext
2727
{
2828
private readonly root: OptionsLayer;
2929

30-
constructor(@Inject('DEFAULT_OPTIONS') root: Options) {
30+
constructor(root: Options) {
3131
super();
3232
this.root = {
3333
options$: new BehaviorSubject(root),

0 commit comments

Comments
 (0)