chore: add version to workspace profile

This commit is contained in:
Steven
2023-11-21 22:12:12 +08:00
parent 50d9873ec1
commit 0c2283a831
4 changed files with 129 additions and 114 deletions

View File

@ -13,8 +13,9 @@ import (
func (s *APIV2Service) GetWorkspaceProfile(ctx context.Context, _ *apiv2pb.GetWorkspaceProfileRequest) (*apiv2pb.GetWorkspaceProfileResponse, error) {
profile := &apiv2pb.WorkspaceProfile{
Mode: s.Profile.Mode,
Plan: apiv2pb.PlanType_FREE,
Mode: s.Profile.Mode,
Version: s.Profile.Version,
Plan: apiv2pb.PlanType_FREE,
}
// Load subscription plan from license service.