Add tenant context interfaces for multi-tenant operations and user context management. Refactor logging in webhook endpoints and improve async method calls in repositories for better readability and performance.
This commit is contained in:
@@ -122,11 +122,11 @@ public sealed class SbomSourceRepository : RepositoryBase<ScannerSourcesDataSour
|
||||
MapSource,
|
||||
ct);
|
||||
|
||||
var totalCount = (await ExecuteScalarAsync<long>(
|
||||
var totalCount = await ExecuteScalarAsync<long>(
|
||||
tenantId,
|
||||
countSb.ToString(),
|
||||
AddFilters,
|
||||
ct)).Value;
|
||||
ct);
|
||||
|
||||
string? nextCursor = null;
|
||||
if (items.Count > request.Limit)
|
||||
|
||||
@@ -98,12 +98,11 @@ public sealed class SbomSourceRunRepository : RepositoryBase<ScannerSourcesDataS
|
||||
MapRun,
|
||||
ct);
|
||||
|
||||
var totalCountResult = await ExecuteScalarAsync<long>(
|
||||
var totalCount = await ExecuteScalarAsync<long>(
|
||||
"__system__",
|
||||
countSb.ToString(),
|
||||
AddFilters,
|
||||
ct);
|
||||
var totalCount = totalCountResult.GetValueOrDefault();
|
||||
|
||||
string? nextCursor = null;
|
||||
if (items.Count > request.Limit)
|
||||
|
||||
Reference in New Issue
Block a user