Skip to content

Commit

Permalink
fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
outerwinnie committed Sep 5, 2024
1 parent 82dfd4a commit 5058a04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ private static async Task MonitorCsvFileAsync()
foreach (var record in records)
{
// Check if reward is "recuerdate" and quantity is greater than 0
if (record.rewardname == "recuerdate" && record.quantity > 0)
if (record.RewardName == "recuerdate" && record.Quantity > 0)
{
Console.WriteLine($"Running PostRandomImageUrl {record.quantity} times...");
Console.WriteLine($"Running PostRandomImageUrl {record.Quantity} times...");

// Run PostRandomImageUrl as many times as specified by quantity
for (int i = 0; i < record.quantity; i++)
for (int i = 0; i < record.Quantity; i++)
{
await PostRandomImageUrl();
}
Expand Down Expand Up @@ -148,8 +148,8 @@ private static async Task PostRandomImageUrl()

public class RewardRecord
{
public string rewardname { get; set; }
public int quantity { get; set; }
public string RewardName { get; set; }
public int Quantity { get; set; }
}
}
}

0 comments on commit 5058a04

Please sign in to comment.