Skip to content

Commit bb7d6a5

Browse files
fix: resolve build errors
1 parent 7616b54 commit bb7d6a5

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
- Always create migrations using the `dotnet ef` CLI tool.
55
- Use Conventional Commits for commit messages.
66
- Use Semantic Versioning for releases.
7+
- Always run a build at the end of tasks to check for errors or warnings.
8+
- Fix any errors or warnings discovered during the build before finishing.
79
</INSTRUCTIONS>

GitProtect/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
.PreventOverlapping("backup-schedule");
6767

6868
scheduler.Schedule<RetentionPolicyInvoker>()
69-
.EveryHour()
69+
.Hourly()
7070
.PreventOverlapping("retention-policy");
7171
});
7272

GitProtect/Services/S3StorageService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ private static async Task<int> DeleteKeysAsync(GenericS3Client client, string bu
132132
for (var i = 0; i < keys.Count; i += maxBatchSize)
133133
{
134134
var batch = keys.Skip(i).Take(maxBatchSize).ToList();
135-
var response = await client.DeleteObjectsAsync(bucket, batch, _ => { }, cancellationToken);
135+
var deleteInfos = batch.Select(key =>
136+
new Genbox.SimpleS3.Core.Network.Requests.S3Types.S3DeleteInfo(key, null));
137+
var response = await client.DeleteObjectsAsync(bucket, deleteInfos, _ => { }, cancellationToken);
136138
if (!response.IsSuccess)
137139
{
138140
ThrowDetailedError(

0 commit comments

Comments
 (0)