Skip to content

Commit 6179568

Browse files
authored
Pass avatar_url un git-gateway backend (#7247)
* Pass avatar_url un git-gateway backend * Fix lint * Fix ts issue
1 parent 232b012 commit 6179568

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/decap-cms-backend-git-gateway/src/implementation.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,11 @@ export default class GitGateway implements Implementation {
362362
if (!(await this.api!.hasWriteAccess())) {
363363
throw new Error("You don't have sufficient permissions to access Decap CMS");
364364
}
365-
return { name: userData.name, login: userData.email } as User;
365+
return {
366+
name: userData.name,
367+
login: userData.email,
368+
avatar_url: userData.avatar_url,
369+
} as unknown as User;
366370
});
367371
}
368372
async restoreUser() {

0 commit comments

Comments
 (0)