refactor(architecture): harden module boundaries
Some checks failed
ci / release-gate (push) Has been cancelled
Some checks failed
ci / release-gate (push) Has been cancelled
This commit is contained in:
@@ -265,7 +265,7 @@ internal abstract partial class DirectContentServiceBase
|
||||
{
|
||||
if (!id.HasValue) return;
|
||||
|
||||
var exists = await dbContext.Set<TEntity>()
|
||||
var exists = await unitOfWork.Set<TEntity>()
|
||||
.AnyAsync(
|
||||
item => EF.Property<Guid>(item, "TenantId") == tenantId && EF.Property<Guid>(item, "Id") == id.Value,
|
||||
cancellationToken);
|
||||
@@ -274,7 +274,7 @@ internal abstract partial class DirectContentServiceBase
|
||||
|
||||
protected async Task AssertImportJobAsync(Guid tenantId, Guid jobId, CancellationToken cancellationToken)
|
||||
{
|
||||
var exists = await dbContext.ContentImportJobs.AnyAsync(
|
||||
var exists = await questionBankPersistence.ContentImportJobs.AnyAsync(
|
||||
item => item.TenantId == tenantId && item.Id == jobId,
|
||||
cancellationToken);
|
||||
if (!exists) throw new ContentManagementException("Import job was not found.", "import_job_not_found");
|
||||
|
||||
Reference in New Issue
Block a user