Skip to content

Commit

Permalink
remove incorrect value (#3341)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsn authored Sep 4, 2024
1 parent abcde85 commit 951361f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions vdr/didsubject/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,8 @@ func (r *Manager) CreateService(ctx context.Context, subject string, service did
return nil, err
}
sqlService := orm.Service{
ID: service.ID.String(),
DIDDocumentID: current.DidID,
Data: asJson,
ID: service.ID.String(),
Data: asJson,
}
current.Services = append(current.Services, sqlService)

Expand Down Expand Up @@ -326,9 +325,8 @@ func (r *Manager) UpdateService(ctx context.Context, subject string, serviceID s
return nil, err
}
sqlService := orm.Service{
ID: service.ID.String(),
DIDDocumentID: current.DidID,
Data: asJson,
ID: service.ID.String(),
Data: asJson,
}
current.Services = append(current.Services, sqlService)
return current, nil
Expand Down

0 comments on commit 951361f

Please sign in to comment.