Skip to content

Commit

Permalink
Promote staging to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jun 9, 2024
1 parent 7e441fc commit c828802
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/current-env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
staging
prod
2 changes: 1 addition & 1 deletion routes/votes/endpoints/put_user_entity_votes/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func Route(d uapi.RouteData, r *http.Request) uapi.HttpResponse {
}

// Perform post-vote tasks
err = votes.EntityPostVote(d.Context, tx, uid, targetType, targetId)
err = votes.EntityPostVote(d.Context, tx, targetType, targetId)

if err != nil {
state.Logger.Error("Failed to perform post-vote tasks", zap.Error(err), zap.String("userId", uid), zap.String("targetId", targetId), zap.String("targetType", targetType))
Expand Down
2 changes: 1 addition & 1 deletion votes/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func EntityGiveVotes(ctx context.Context, c DbConn, upvote bool, author, targetT
}

// Helper function to perform post-vote tasks
func EntityPostVote(ctx context.Context, c DbConn, author, targetType, targetId string) error {
func EntityPostVote(ctx context.Context, c DbConn, targetType, targetId string) error {
nvc, err := EntityGetVoteCount(ctx, c, targetId, targetType)

if err != nil {
Expand Down

0 comments on commit c828802

Please sign in to comment.