Having the clear locations endpoint only clear world locations, and adding endpoint to remove all items

This commit is contained in:
hz
2025-08-21 00:28:45 -05:00
parent 1e4b8463ee
commit b7c221d765
7 changed files with 194 additions and 1 deletions
+10
View File
@@ -44,4 +44,14 @@ public class ItemService
{
await _items.DeleteOneAsync(i => i.Id == id);
}
public virtual async Task DeleteByLocationAsync(string locationId)
{
await _items.DeleteManyAsync(i => i.LocationId == locationId);
}
public virtual async Task DeleteAllAsync()
{
await _items.DeleteManyAsync(_ => true);
}
}