fix(dbdoc manager access working again ): update
This commit is contained in:
parent
d3a3d5be9d
commit
c1b1af9c5d
@ -83,7 +83,9 @@ export function Manager<TManager extends IManager>(managerArg?: TManager | TDela
|
|||||||
}
|
}
|
||||||
public static get manager() {
|
public static get manager() {
|
||||||
let manager: TManager;
|
let manager: TManager;
|
||||||
if (managerArg['db']) {
|
if (!managerArg) {
|
||||||
|
manager = this.prototype.defaultManager
|
||||||
|
} else if (managerArg['db']) {
|
||||||
manager = managerArg as TManager;
|
manager = managerArg as TManager;
|
||||||
} else {
|
} else {
|
||||||
manager = (managerArg as TDelayed<TManager>)();
|
manager = (managerArg as TDelayed<TManager>)();
|
||||||
@ -92,7 +94,9 @@ export function Manager<TManager extends IManager>(managerArg?: TManager | TDela
|
|||||||
}
|
}
|
||||||
public get manager() {
|
public get manager() {
|
||||||
let manager: TManager;
|
let manager: TManager;
|
||||||
if (managerArg['db']) {
|
if (!managerArg) {
|
||||||
|
manager = this.defaultManager
|
||||||
|
} else if (managerArg['db']) {
|
||||||
manager = managerArg as TManager;
|
manager = managerArg as TManager;
|
||||||
} else {
|
} else {
|
||||||
manager = (managerArg as TDelayed<TManager>)();
|
manager = (managerArg as TDelayed<TManager>)();
|
||||||
|
Loading…
Reference in New Issue
Block a user