Skip to content

Commit 316a408

Browse files
authored
Merge pull request #30 from bdach/rename
Rename `{ -> Soft}DeleteBeatmapAsync()`
2 parents 7481740 + 02f4505 commit 316a408

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

osu.Server.BeatmapSubmission/BeatmapSubmissionController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public async Task<IActionResult> PutBeatmapSetAsync([FromBody] PutBeatmapSetRequ
148148
{
149149
logger.LogInformation("Deleting beatmaps {beatmapIds} in set {beatmapSetId}", beatmapsToDelete, beatmapSetId);
150150
foreach (uint beatmapId in beatmapsToDelete)
151-
await db.DeleteBeatmapAsync(beatmapId, transaction);
151+
await db.SoftDeleteBeatmapAsync(beatmapId, transaction);
152152
}
153153

154154
var beatmapIds = new List<uint>();

osu.Server.BeatmapSubmission/DatabaseOperationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ await db.ExecuteAsync(
215215
transaction);
216216
}
217217

218-
public static Task DeleteBeatmapAsync(this MySqlConnection db, uint beatmapId, MySqlTransaction? transaction = null)
218+
public static Task SoftDeleteBeatmapAsync(this MySqlConnection db, uint beatmapId, MySqlTransaction? transaction = null)
219219
{
220220
return db.ExecuteAsync("UPDATE `osu_beatmaps` SET `deleted_at` = NOW() WHERE `beatmap_id` = @beatmapId",
221221
new

0 commit comments

Comments
 (0)