@@ -209,7 +209,7 @@ func ReadOperationFromResultSet(res query.Row) (types.Operation, error) {
209209 updatedTs = timestamppb .New (* updatedAt )
210210 }
211211
212- if operationType == string (types .LegacyOperationTypeTB ) || operationType == string ( types . OperationTypeTB ) {
212+ if operationType == string (types .OperationTypeTB ) {
213213 if backupId == nil {
214214 return nil , fmt .Errorf ("failed to read backup_id for TB operation: %s" , operationId )
215215 }
@@ -230,7 +230,7 @@ func ReadOperationFromResultSet(res query.Row) (types.Operation, error) {
230230 UpdatedAt : updatedTs ,
231231 ParentOperationID : parentOperationID ,
232232 }, nil
233- } else if operationType == string (types .LegacyOperationTypeRB ) || operationType == string ( types . OperationTypeRB ) {
233+ } else if operationType == string (types .OperationTypeRB ) {
234234 if backupId == nil {
235235 return nil , fmt .Errorf ("failed to read backup_id for RB operation: %s" , operationId )
236236 }
@@ -249,7 +249,7 @@ func ReadOperationFromResultSet(res query.Row) (types.Operation, error) {
249249 Audit : auditFromDb (creator , createdAt , completedAt ),
250250 UpdatedAt : updatedTs ,
251251 }, nil
252- } else if operationType == string (types .LegacyOperationTypeDB ) || operationType == string ( types . OperationTypeDB ) {
252+ } else if operationType == string (types .OperationTypeDB ) {
253253 if backupId == nil {
254254 return nil , fmt .Errorf ("failed to read backup_id for DB operation: %s" , operationId )
255255 }
@@ -273,7 +273,7 @@ func ReadOperationFromResultSet(res query.Row) (types.Operation, error) {
273273 PathPrefix : pathPrefix ,
274274 UpdatedAt : updatedTs ,
275275 }, nil
276- } else if operationType == string (types .LegacyOperationTypeTBWR ) || operationType == string ( types . OperationTypeTBWR ) {
276+ } else if operationType == string (types .OperationTypeTBWR ) {
277277 var retryConfig * pb.RetryConfig = nil
278278 if maxBackoff != nil {
279279 retryConfig = & pb.RetryConfig {
0 commit comments