use xrpc dispatcher

This commit is contained in:
Matthieu Sieben
2024-05-02 13:29:33 +02:00
parent be26e9b017
commit e3e1a5c7a9
5 changed files with 26 additions and 20 deletions
+2 -2
View File
@@ -156,7 +156,7 @@ class Mocker {
}
async createUser(name: string) {
const agent = new BskyAgent({service: this.agent.service})
const agent = new BskyAgent({service: this.service})
const inviteRes = await agent.api.com.atproto.server.createInviteCode(
{useCount: 1},
@@ -332,7 +332,7 @@ class Mocker {
}
async createInvite(forAccount: string) {
const agent = new BskyAgent({service: this.agent.service})
const agent = new BskyAgent({service: this.service})
await agent.api.com.atproto.server.createInviteCode(
{useCount: 1, forAccount},
{