@@ -3,15 +3,15 @@ import { ID, Role } from '~/common';
3
3
import { RootUserAlias } from '~/core/config/root-user.config' ;
4
4
import { disableAccessPolicies , e , EdgeDB } from '~/core/edgedb' ;
5
5
import { AuthenticationRepository } from '../authentication/authentication.repository' ;
6
- import { ActorRepository } from '../user/actor .repository' ;
6
+ import { SystemAgentRepository } from '../user/system-agent .repository' ;
7
7
8
8
@Injectable ( )
9
9
export class AdminEdgeDBRepository {
10
10
private readonly db : EdgeDB ;
11
11
constructor (
12
12
edgedb : EdgeDB ,
13
13
readonly auth : AuthenticationRepository ,
14
- readonly actors : ActorRepository ,
14
+ readonly agents : SystemAgentRepository ,
15
15
) {
16
16
this . db = edgedb . withOptions ( disableAccessPolicies ) ;
17
17
}
@@ -38,7 +38,7 @@ export class AdminEdgeDBRepository {
38
38
}
39
39
40
40
async createRootUser ( id : ID , email : string , passwordHash : string ) {
41
- const ghost = await this . actors . getGhost ( ) ;
41
+ const ghost = await this . agents . getGhost ( ) ;
42
42
43
43
const newUser = e . insert ( e . User , {
44
44
id,
@@ -63,7 +63,7 @@ export class AdminEdgeDBRepository {
63
63
}
64
64
65
65
async updateEmail ( id : ID , email : string ) {
66
- const ghost = await this . actors . getGhost ( ) ;
66
+ const ghost = await this . agents . getGhost ( ) ;
67
67
const u = e . cast ( e . User , e . uuid ( id ) ) ;
68
68
const query = e . update ( u , ( ) => ( { set : { email } } ) ) ;
69
69
await this . db
0 commit comments