Skip to content

Commit

Permalink
Pass avatar_url un git-gateway backend (#7247)
Browse files Browse the repository at this point in the history
* Pass avatar_url un git-gateway backend

* Fix lint

* Fix ts issue
  • Loading branch information
loteoo committed Jul 8, 2024
1 parent 232b012 commit 6179568
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/decap-cms-backend-git-gateway/src/implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,11 @@ export default class GitGateway implements Implementation {
if (!(await this.api!.hasWriteAccess())) {
throw new Error("You don't have sufficient permissions to access Decap CMS");
}
return { name: userData.name, login: userData.email } as User;
return {
name: userData.name,
login: userData.email,
avatar_url: userData.avatar_url,
} as unknown as User;
});
}
async restoreUser() {
Expand Down

0 comments on commit 6179568

Please sign in to comment.