style(backend): apply dotnet format whitespace normalization
- Applied dotnet format to 24 files in backend/ - Corrects spacing, indentation, and formatting consistency - No functional changes to code logic Ultraworked with Sisyphus <https://github.com/code-yeongyu/oh-my-opencode> Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -42,7 +42,7 @@ public class MemberSyncService
|
||||
|
||||
var email = httpContext.User.FindFirst("email")?.Value ?? httpContext.User.FindFirst("preferred_username")?.Value ?? "unknown@example.com";
|
||||
var name = httpContext.User.FindFirst("name")?.Value ?? email.Split('@')[0];
|
||||
|
||||
|
||||
var roleClaim = httpContext.User.FindFirst(System.Security.Claims.ClaimTypes.Role)?.Value ?? "Member";
|
||||
var clubRole = roleClaim.ToLowerInvariant() switch
|
||||
{
|
||||
|
||||
@@ -57,7 +57,7 @@ public class ShiftService
|
||||
public async Task<ShiftDetailDto?> GetShiftByIdAsync(Guid id)
|
||||
{
|
||||
var shift = await _context.Shifts.FindAsync(id);
|
||||
|
||||
|
||||
if (shift == null)
|
||||
return null;
|
||||
|
||||
@@ -91,7 +91,7 @@ public class ShiftService
|
||||
public async Task<(ShiftDetailDto? shift, string? error)> CreateShiftAsync(CreateShiftRequest request, Guid createdById)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetTenantId();
|
||||
|
||||
|
||||
var shift = new Shift
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
@@ -132,7 +132,7 @@ public class ShiftService
|
||||
public async Task<(ShiftDetailDto? shift, string? error, bool isConflict)> UpdateShiftAsync(Guid id, UpdateShiftRequest request)
|
||||
{
|
||||
var shift = await _context.Shifts.FindAsync(id);
|
||||
|
||||
|
||||
if (shift == null)
|
||||
return (null, "Shift not found", false);
|
||||
|
||||
@@ -197,7 +197,7 @@ public class ShiftService
|
||||
public async Task<bool> DeleteShiftAsync(Guid id)
|
||||
{
|
||||
var shift = await _context.Shifts.FindAsync(id);
|
||||
|
||||
|
||||
if (shift == null)
|
||||
return false;
|
||||
|
||||
@@ -212,7 +212,7 @@ public class ShiftService
|
||||
var tenantId = _tenantProvider.GetTenantId();
|
||||
|
||||
var shift = await _context.Shifts.FindAsync(shiftId);
|
||||
|
||||
|
||||
if (shift == null)
|
||||
return (false, "Shift not found", false);
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class TaskService
|
||||
public async Task<TaskDetailDto?> GetTaskByIdAsync(Guid id)
|
||||
{
|
||||
var workItem = await _context.WorkItems.FindAsync(id);
|
||||
|
||||
|
||||
if (workItem == null)
|
||||
return null;
|
||||
|
||||
@@ -73,7 +73,7 @@ public class TaskService
|
||||
public async Task<(TaskDetailDto? task, string? error)> CreateTaskAsync(CreateTaskRequest request, Guid createdById)
|
||||
{
|
||||
var tenantId = _tenantProvider.GetTenantId();
|
||||
|
||||
|
||||
var workItem = new WorkItem
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
@@ -111,7 +111,7 @@ public class TaskService
|
||||
public async Task<(TaskDetailDto? task, string? error, bool isConflict)> UpdateTaskAsync(Guid id, UpdateTaskRequest request)
|
||||
{
|
||||
var workItem = await _context.WorkItems.FindAsync(id);
|
||||
|
||||
|
||||
if (workItem == null)
|
||||
return (null, "Task not found", false);
|
||||
|
||||
@@ -172,7 +172,7 @@ public class TaskService
|
||||
public async Task<bool> DeleteTaskAsync(Guid id)
|
||||
{
|
||||
var workItem = await _context.WorkItems.FindAsync(id);
|
||||
|
||||
|
||||
if (workItem == null)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user