@@ -14,7 +14,6 @@ import (
1414 "github.com/reearth/reearth/server/pkg/property"
1515 "github.com/reearth/reearth/server/pkg/scene"
1616 "github.com/reearth/reearthx/account/accountdomain/user"
17- "github.com/reearth/reearthx/account/accountinfrastructure/accountmongo"
1817 "github.com/reearth/reearthx/account/accountusecase/accountrepo"
1918 "github.com/reearth/reearthx/authserver"
2019 "github.com/reearth/reearthx/log"
@@ -53,14 +52,14 @@ func New(ctx context.Context, db *mongo.Database, account *accountrepo.Container
5352 Scene : NewScene (client ),
5453 Tag : NewTag (client ),
5554 SceneLock : NewSceneLock (client ),
56- Permittable : accountmongo . NewPermittable (client ), // TODO: Delete this once the permission check migration is complete.
55+ Permittable : NewPermittableWrapper (client ), // TODO: Delete this once the permission check migration is complete.
5756 Policy : NewPolicy (client ),
58- Role : accountmongo . NewRole (client ), // TODO: Delete this once the permission check migration is complete.
57+ Role : NewRoleWrapper (client ), // TODO: Delete this once the permission check migration is complete.
5958 Storytelling : NewStorytelling (client ),
6059 Lock : lock ,
6160 Transaction : client .Transaction (),
6261 Workspace : NewWorkspaceWrapper (client ),
63- User : account . User ,
62+ User : NewUserWrapper ( client ) ,
6463 }
6564
6665 // init
@@ -126,16 +125,16 @@ func Init(r *repo.Container) error {
126125 func () error { return r .Dataset .(* Dataset ).Init (ctx ) },
127126 func () error { return r .DatasetSchema .(* DatasetSchema ).Init (ctx ) },
128127 func () error { return r .Layer .(* Layer ).Init (ctx ) },
129- func () error { return r .Permittable .(* accountmongo. Permittable ).Init (ctx ) }, // TODO: Delete this once the permission check migration is complete.
128+ func () error { return r .Permittable .(* PermittableWrapper ).Init (ctx ) }, // TODO: Delete this once the permission check migration is complete.
130129 func () error { return r .Plugin .(* Plugin ).Init (ctx ) },
131130 func () error { return r .Policy .(* Policy ).Init (ctx ) },
132131 func () error { return r .Project .(* Project ).Init (ctx ) },
133132 func () error { return r .Property .(* Property ).Init (ctx ) },
134133 func () error { return r .PropertySchema .(* PropertySchema ).Init (ctx ) },
135- func () error { return r .Role .(* accountmongo. Role ).Init (ctx ) }, // TODO: Delete this once the permission check migration is complete.
134+ func () error { return r .Role .(* RoleWrapper ).Init (ctx ) }, // TODO: Delete this once the permission check migration is complete.
136135 func () error { return r .Scene .(* Scene ).Init (ctx ) },
137136 func () error { return r .Tag .(* Tag ).Init (ctx ) },
138- func () error { return r .User .(* accountmongo. User ).Init () },
137+ func () error { return r .User .(* UserWrapper ).Init () },
139138 func () error { return r .Workspace .(* WorkspaceWrapper ).Init () },
140139 )
141140}
0 commit comments