1
0
Fork 0
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:
Jannis Metrikat 2025-05-07 01:53:02 +02:00
parent ace65b94d8
commit a216c2051f
No known key found for this signature in database
GPG key ID: B223CAC5AAF85615

View file

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