1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-10 01:51:11 +09:00

Fix inviting client

This commit is contained in:
mcrakhman 2024-01-10 19:30:14 +01:00
parent 6ad88dcde0
commit 2c61cf1485
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -45,7 +45,7 @@ func (c *aclInvitingClient) AclGetRecords(ctx context.Context, spaceId, aclHead
err = c.doClient(ctx, aclHead, func(cl spacesyncproto.DRPCSpaceSyncClient) error {
var err error
res, err = cl.AclGetRecords(ctx, &spacesyncproto.AclGetRecordsRequest{
SpaceId: c.spaceId,
SpaceId: spaceId,
AclHead: aclHead,
})
return err
@ -78,7 +78,7 @@ func (c *aclInvitingClient) RequestJoin(ctx context.Context, spaceId string, acl
}
return c.doClient(ctx, acl.Id(), func(cl spacesyncproto.DRPCSpaceSyncClient) error {
_, err = cl.AclAddRecord(ctx, &spacesyncproto.AclAddRecordRequest{
SpaceId: c.spaceId,
SpaceId: spaceId,
Payload: data,
})
return err