Skip to content

Commit

Permalink
Fix google purchase upsert query. (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Jan 16, 2023
1 parent b58204b commit d225d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core_purchase.go
Expand Up @@ -587,7 +587,7 @@ func upsertPurchases(ctx context.Context, db *sql.DB, purchases []*storagePurcha
purchase.rawResponse = "{}"
}

statement := fmt.Sprintf("($%d, $%d, $%d, $%d, $%d, $%d, $%d $%d)", offset+1, offset+2, offset+3, offset+4, offset+5, offset+6, offset+7, offset+8)
statement := fmt.Sprintf("($%d, $%d, $%d, $%d, $%d, $%d, $%d, $%d)", offset+1, offset+2, offset+3, offset+4, offset+5, offset+6, offset+7, offset+8)
offset += 8
statements = append(statements, statement)
params = append(params, purchase.userID, purchase.store, purchase.transactionId, purchase.productId, purchase.purchaseTime, purchase.rawResponse, purchase.environment, purchase.refundTime)
Expand Down

0 comments on commit d225d20

Please sign in to comment.