1
0
Fork 0
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:
mcrakhman 2023-10-16 15:11:02 +02:00
parent 6fa8453e4c
commit 65947f8ff3
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 125 additions and 21 deletions

View file

@ -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 {