Skip to content

Commit

Permalink
fix user save
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Aug 2, 2024
1 parent eb10ddd commit 7d9fa8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subgraphs/governance-staking/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const getOrCreateUser = (id: Address): User => {
let user = User.load(id);
if (!user) {
user = new User(id);
user.save();
}

return user;
Expand Down

0 comments on commit 7d9fa8a

Please sign in to comment.