Browse Source

Asset RemoveAsync fix (#420)

* Asset RemoveAsync fixed
pull/422/head
dsbegnoche 7 years ago
committed by Sebastian Stehle
parent
commit
81981d2eea
  1. 4
      src/Squidex.Domain.Apps.Entities.MongoDb/Assets/MongoAssetRepository.cs

4
src/Squidex.Domain.Apps.Entities.MongoDb/Assets/MongoAssetRepository.cs

@ -140,9 +140,9 @@ namespace Squidex.Domain.Apps.Entities.MongoDb.Assets
} }
} }
public Task RemoveAsync(Guid appId) public Task RemoveAsync(Guid key)
{ {
return Collection.DeleteManyAsync(x => x.IndexedAppId == appId); return Collection.DeleteOneAsync(x => x.Id == key);
} }
} }
} }

Loading…
Cancel
Save