From 8e341d448d13bbd644358a85219544c3289c9fd7 Mon Sep 17 00:00:00 2001 From: dholms Date: Tue, 14 Nov 2023 18:22:32 -0600 Subject: [PATCH] fix test --- packages/bsky/tests/admin/get-repo.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/bsky/tests/admin/get-repo.test.ts b/packages/bsky/tests/admin/get-repo.test.ts index 9b4f6690ccd..c6c6544f3ed 100644 --- a/packages/bsky/tests/admin/get-repo.test.ts +++ b/packages/bsky/tests/admin/get-repo.test.ts @@ -101,9 +101,11 @@ describe('admin get repo view', () => { expect(beforeEmailVerification.emailConfirmedAt).toBeUndefined() const timestampBeforeVerification = Date.now() const bobsAccount = sc.accounts[sc.dids.bob] - const verificationToken = await network.pds.ctx.services - .account(network.pds.ctx.db) - .createEmailToken(sc.dids.bob, 'confirm_email') + const verificationToken = + await network.pds.ctx.accountManager.createEmailToken( + sc.dids.bob, + 'confirm_email', + ) await agent.api.com.atproto.server.confirmEmail( { email: bobsAccount.email, token: verificationToken }, {