mirror of
https://github.com/aykhans/slash-e.git
synced 2026-11-10 15:41:09 +00:00
refactor: workspace setting definitions
This commit is contained in:
1 parent
61d01a53eb
commit
ecf77e0774
36 files changed
+1277
-1052
No files matched your search
@@ -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