Skip to content

Commit

Permalink
Fix DB bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arumie committed Mar 3, 2024
1 parent 99f5e2d commit 2e5ad3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AiTestimonials/Repository/VercelPostgresRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ testimonial JSONB
public async Task<int> CreateNewTestimonialAsync(TestimonialInput input)
{
await using var cmd = _db.CreateCommand($"INSERT INTO testimonials (status, input) VALUES (@status, @input) RETURNING id;");
var param1 = new NpgsqlParameter() { ParameterName = "value", NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Integer, Value = (int)TestimonialStatus.PENDING };
var param1 = new NpgsqlParameter() { ParameterName = "status", NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Integer, Value = (int)TestimonialStatus.PENDING };
var param2 = new NpgsqlParameter() { ParameterName = "input", NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Jsonb, Value = input };
cmd.Parameters.Add(param1);
cmd.Parameters.Add(param2);
Expand Down

0 comments on commit 2e5ad3f

Please sign in to comment.