fix: add empty user to base
parent
ad3e3593fd
commit
6807d00cbe
|
@ -32,7 +32,7 @@ export abstract class BaseManager {
|
|||
|
||||
setUser() {
|
||||
try {
|
||||
this.user = this.userProvider?.user;
|
||||
this.user = this.userProvider?.user ?? BLANK_USER;
|
||||
} catch (error) {
|
||||
this.user = BLANK_USER;
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ export abstract class BaseCreateManager<Entity> extends BaseManager {
|
|||
}
|
||||
|
||||
async publishEvents() {
|
||||
this.eventBus.publish(
|
||||
this.eventBus?.publish(
|
||||
new RecordLog({
|
||||
id: this.result['id'],
|
||||
old: null,
|
||||
|
|
Loading…
Reference in New Issue