Skip to content

Commit 408ca8b

Browse files
committed
test: fix type error
1 parent caaa2d4 commit 408ca8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/globalSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ const createAccount = async (rpc: XRPC, handle: string) => {
5656
};
5757

5858
async function createProfileRecord(rpc: XRPC, handle: string) {
59-
const { buffer } = await fs.readFile('alice-avatar.jpeg');
59+
const imageBuffer = await fs.readFile('alice-avatar.jpeg');
6060
const { data: blob } = await rpc.call('com.atproto.repo.uploadBlob', {
6161
headers: { 'content-type': 'image/jpeg' },
62-
data: buffer,
62+
data: imageBuffer,
6363
});
6464

6565
await rpc.call('com.atproto.repo.createRecord', {

0 commit comments

Comments
 (0)