diff --git a/functions/graphql/resolvers.js b/functions/graphql/resolvers.js index b35b32b..158c491 100644 --- a/functions/graphql/resolvers.js +++ b/functions/graphql/resolvers.js @@ -206,7 +206,7 @@ module.exports = { await context.prisma.project.update({ where: { id: project.id }, data: { - votes_count: (project.votes_count = vote.amount_in_sat), + votes_count: project.votes_count + vote.amount_in_sat, }, }); // return the current vote