Skip to content

Commit 5df2720

Browse files
committed
fix: 🐛 correct build errors
1 parent b07a262 commit 5df2720

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/rpc/caller/TypeRouterCaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class TypeRouterCaller<Router extends TypeRouter<any>, Ctx = unknown> ext
3737
if (!fn || !(fn instanceof FunctionType || fn instanceof FunctionStreamingType)) return undefined;
3838
const validator = fn.req.validator('object');
3939
const requestSchema = (fn.req as AbstractType<Schema>).getSchema();
40-
const isRequestVoid = requestSchema.__t === 'const' && requestSchema.value === undefined;
40+
const isRequestVoid = requestSchema.kind === 'const' && requestSchema.value === undefined;
4141
const validate = isRequestVoid
4242
? () => {}
4343
: (req: unknown) => {

src/json-crdt-repo/remote/__tests__/DemoServerRemoteHistory.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('.create()', () => {
3030
await remote.create(id, [{blob}]);
3131
const {data} = await caller.call('block.get', {id}, {});
3232
// console.log(data.patches);
33-
const model2 = Model.fromBinary(data.model.blob);
33+
const model2 = Model.fromBinary(data.block.snapshot.blob);
3434
expect(model2.view()).toEqual({foo: 'bar'});
3535
});
3636
});

0 commit comments

Comments
 (0)