mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-4969: Fix returned error when deleting type fails
This commit is contained in:
parent
ace65b94d8
commit
a216c2051f
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ func (s *Service) DeleteType(ctx context.Context, spaceId string, typeId string)
|
|||
})
|
||||
|
||||
if resp.Error != nil && resp.Error.Code != pb.RpcObjectSetIsArchivedResponseError_NULL {
|
||||
return apimodel.Type{}, ErrFailedDeleteObject
|
||||
return apimodel.Type{}, ErrFailedDeleteType
|
||||
}
|
||||
|
||||
return t, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue