@@ -292,7 +292,7 @@ export class AccountDurableObject extends DurableObject<Env> {
292292 const commitData : CommitData = {
293293 did : this . repo . did ,
294294 commit : this . repo . cid ,
295- rev : this . repo . cid . toString ( ) ,
295+ rev : this . repo . commit . rev ,
296296 since : prevCid . toString ( ) ,
297297 newBlocks,
298298 ops : [ createOp ] ,
@@ -310,7 +310,7 @@ export class AccountDurableObject extends DurableObject<Env> {
310310 tooBig : false ,
311311 repo : this . repo . did ,
312312 commit : this . repo . cid ,
313- rev : this . repo . cid . toString ( ) ,
313+ rev : this . repo . commit . rev ,
314314 since : prevCid . toString ( ) ,
315315 blocks : new Uint8Array ( ) , // Will be filled by sequencer
316316 ops : [
@@ -334,7 +334,7 @@ export class AccountDurableObject extends DurableObject<Env> {
334334 cid : recordCid . toString ( ) ,
335335 commit : {
336336 cid : this . repo . cid . toString ( ) ,
337- rev : this . repo . cid . toString ( ) ,
337+ rev : this . repo . commit . rev ,
338338 } ,
339339 } ;
340340 }
@@ -382,7 +382,7 @@ export class AccountDurableObject extends DurableObject<Env> {
382382 const commitData : CommitData = {
383383 did : this . repo . did ,
384384 commit : this . repo . cid ,
385- rev : this . repo . cid . toString ( ) ,
385+ rev : this . repo . commit . rev ,
386386 since : prevCid . toString ( ) ,
387387 newBlocks,
388388 ops : [ deleteOp ] ,
@@ -400,7 +400,7 @@ export class AccountDurableObject extends DurableObject<Env> {
400400 tooBig : false ,
401401 repo : this . repo . did ,
402402 commit : this . repo . cid ,
403- rev : this . repo . cid . toString ( ) ,
403+ rev : this . repo . commit . rev ,
404404 since : prevCid . toString ( ) ,
405405 blocks : new Uint8Array ( ) , // Will be filled by sequencer
406406 ops : [
@@ -422,7 +422,7 @@ export class AccountDurableObject extends DurableObject<Env> {
422422 return {
423423 commit : {
424424 cid : updatedRepo . cid . toString ( ) ,
425- rev : updatedRepo . cid . toString ( ) ,
425+ rev : updatedRepo . commit . rev ,
426426 } ,
427427 } ;
428428 }
@@ -564,7 +564,7 @@ export class AccountDurableObject extends DurableObject<Env> {
564564 const commitData : CommitData = {
565565 did : this . repo . did ,
566566 commit : this . repo . cid ,
567- rev : this . repo . cid . toString ( ) ,
567+ rev : this . repo . commit . rev ,
568568 since : prevCid . toString ( ) ,
569569 newBlocks,
570570 ops,
@@ -601,7 +601,7 @@ export class AccountDurableObject extends DurableObject<Env> {
601601 tooBig : false ,
602602 repo : this . repo . did ,
603603 commit : this . repo . cid ,
604- rev : this . repo . cid . toString ( ) ,
604+ rev : this . repo . commit . rev ,
605605 since : prevCid . toString ( ) ,
606606 blocks : new Uint8Array ( ) ,
607607 ops : firehoseOps as any ,
@@ -617,7 +617,7 @@ export class AccountDurableObject extends DurableObject<Env> {
617617 return {
618618 commit : {
619619 cid : this . repo . cid . toString ( ) ,
620- rev : this . repo . cid . toString ( ) ,
620+ rev : this . repo . commit . rev ,
621621 } ,
622622 results : finalResults ,
623623 } ;
@@ -633,7 +633,7 @@ export class AccountDurableObject extends DurableObject<Env> {
633633 const repo = await this . getRepo ( ) ;
634634 return {
635635 did : repo . did ,
636- rev : repo . cid . toString ( ) ,
636+ rev : repo . commit . rev ,
637637 } ;
638638 }
639639
0 commit comments