mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-2059 WIP deletion controller
This commit is contained in:
parent
6fa8453e4c
commit
65947f8ff3
5 changed files with 125 additions and 21 deletions
|
@ -18,6 +18,10 @@ func (s *service) startLoad(ctx context.Context, spaceID string) (err error) {
|
|||
if status.LocalStatus != spaceinfo.LocalStatusUnknown {
|
||||
return nil
|
||||
}
|
||||
// If space is not loading, but it is deleted, return error
|
||||
if status.AccountStatus == spaceinfo.AccountStatusDeleted {
|
||||
return ErrSpaceDeleted
|
||||
}
|
||||
|
||||
exists, err := s.techSpace.SpaceViewExists(ctx, spaceID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue