mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-06 21:22:36 +00:00
refactor: workspace setting definitions
This commit is contained in:
@ -118,13 +118,7 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
|
||||
}
|
||||
|
||||
func (s *FrontendService) registerFileRoutes(ctx context.Context, e *echo.Echo) {
|
||||
instanceURLSetting, err := s.Store.GetWorkspaceSetting(ctx, &store.FindWorkspaceSetting{
|
||||
Key: storepb.WorkspaceSettingKey_WORKSPACE_SETTING_INSTANCE_URL,
|
||||
})
|
||||
if err != nil || instanceURLSetting == nil {
|
||||
return
|
||||
}
|
||||
instanceURL := instanceURLSetting.GetInstanceUrl()
|
||||
instanceURL := s.Profile.InstanceURL
|
||||
if instanceURL == "" {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user