be consistent

This commit is contained in:
2026-07-03 20:35:45 -04:00
parent 1ff96ee9c8
commit 9158648f3f
15 changed files with 80 additions and 80 deletions
+10 -10
View File
@@ -68,11 +68,11 @@ func (s *Server) GetProgressList(ctx context.Context, request GetProgressListReq
apiProgress[i] = Progress{
Title: row.Title,
Author: row.Author,
DeviceName: &row.DeviceName,
Percentage: &row.Percentage,
DocumentId: &row.DocumentID,
UserId: &row.UserID,
CreatedAt: parseTimePtr(row.CreatedAt),
DeviceName: row.DeviceName,
Percentage: row.Percentage,
DocumentId: row.DocumentID,
UserId: row.UserID,
CreatedAt: parseTimeAny(row.CreatedAt),
}
}
@@ -105,13 +105,13 @@ func (s *Server) GetProgress(ctx context.Context, request GetProgressRequestObje
}
apiProgress := Progress{
DeviceName: &row.DeviceName,
DeviceName: row.DeviceName,
DeviceId: &row.DeviceID,
Percentage: &row.Percentage,
Percentage: row.Percentage,
Progress: &row.Progress,
DocumentId: &row.DocumentID,
UserId: &row.UserID,
CreatedAt: parseTimePtr(row.CreatedAt),
DocumentId: row.DocumentID,
UserId: row.UserID,
CreatedAt: parseTime(row.CreatedAt),
}
response := ProgressResponse{