Skip to content
Snippets Groups Projects
Commit f798b87d authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

Fix: Invalidate Metadata

parent b459a2f9
No related branches found
No related tags found
1 merge request!94Fix: Invalidate Metadata
......@@ -11,6 +11,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.StaticFiles;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
......@@ -320,6 +321,10 @@ namespace Coscine.Api.Blob.Controllers
return BadRequest($"No provider for: \"{resource.Type.DisplayName}\".");
}
await resourceTypeDefinition.DeleteEntry(resource.Id.ToString(), path);
var userGraphName = $"{_rdfStoreConnector.UserUrlPrefix}/{user.Id}";
_rdfStoreConnector.SetInvalidation(resource.Id.ToString(), path, "metadata", new Uri(userGraphName));
LogAnalytics("Delete File", resourceId, path, user);
return NoContent();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment