refactor(session): route construction through Session.create
This commit is contained in:
@@ -44,7 +44,7 @@ async function mounted(options: {
|
||||
}
|
||||
|
||||
function freshSession(id: string): Session {
|
||||
return new Session(SessionId(id))
|
||||
return Session.create(SessionId(id))
|
||||
}
|
||||
|
||||
async function mountedStore(options: { approvalDefault?: ApprovalPolicy | undefined } = {}): Promise<Context> {
|
||||
|
||||
Reference in New Issue
Block a user