feat(data): TaskRepository.UpdatePlanningSessionIdAsync

This commit is contained in:
mika kuns
2026-04-23 17:58:28 +02:00
parent 2278d97b7e
commit d099138487
2 changed files with 25 additions and 0 deletions

View File

@@ -282,6 +282,17 @@ public sealed class TaskRepository
return await _context.Tasks.AsNoTracking().FirstOrDefaultAsync(t => t.Id == taskId, ct);
}
public async Task UpdatePlanningSessionIdAsync(
string parentId,
string sessionId,
CancellationToken ct = default)
{
await _context.Tasks
.Where(t => t.Id == parentId)
.ExecuteUpdateAsync(s => s
.SetProperty(t => t.PlanningSessionId, sessionId), ct);
}
#endregion
#region Queue selection