@@ -524,8 +524,8 @@ export class Realm {
524
524
let type = opts ?. isDelete
525
525
? 'removed'
526
526
: ( await this . #adapter. exists ( path ) )
527
- ? 'updated'
528
- : 'added' ;
527
+ ? 'updated'
528
+ : 'added' ;
529
529
let messageHash = `${ type } -${ JSON . stringify ( { [ type ] : path } ) } ` ;
530
530
this . #recentWrites. set (
531
531
messageHash ,
@@ -729,15 +729,14 @@ export class Realm {
729
729
if ( ! request . headers . get ( 'X-Boxel-Building-Index' ) ) {
730
730
let timeout = await Promise . race < void | Error > ( [
731
731
this . #startedUp. promise ,
732
- new Promise (
733
- ( resolve ) =>
734
- setTimeout ( ( ) => {
735
- resolve (
736
- new Error (
737
- `Timeout waiting for realm ${ this . url } to become ready` ,
738
- ) ,
739
- ) ;
740
- } , 60 * 1000 ) . unref ?.( ) ,
732
+ new Promise ( ( resolve ) =>
733
+ setTimeout ( ( ) => {
734
+ resolve (
735
+ new Error (
736
+ `Timeout waiting for realm ${ this . url } to become ready` ,
737
+ ) ,
738
+ ) ;
739
+ } , 60 * 1000 ) . unref ?.( ) ,
741
740
) ,
742
741
] ) ;
743
742
if ( timeout ) {
@@ -1097,20 +1096,20 @@ export class Realm {
1097
1096
module ?. type === 'module'
1098
1097
? module . canonicalURL
1099
1098
: instance ?. type === 'instance'
1100
- ? instance . canonicalURL
1101
- : undefined ;
1099
+ ? instance . canonicalURL
1100
+ : undefined ;
1102
1101
let source =
1103
1102
module ?. type === 'module'
1104
1103
? module . source
1105
1104
: instance ?. type === 'instance'
1106
- ? instance . source
1107
- : undefined ;
1105
+ ? instance . source
1106
+ : undefined ;
1108
1107
let lastModified =
1109
1108
module ?. type === 'module'
1110
1109
? module . lastModified
1111
1110
: instance ?. type === 'instance'
1112
- ? instance . lastModified
1113
- : undefined ;
1111
+ ? instance . lastModified
1112
+ : undefined ;
1114
1113
if ( canonicalURL == null || source == null || lastModified == null ) {
1115
1114
throw new Error (
1116
1115
`missing 'canonicalURL', 'source', and/or 'lastModified' from index entry ${
@@ -1289,9 +1288,8 @@ export class Realm {
1289
1288
}
1290
1289
1291
1290
let url = this . paths . fileURL ( localPath ) ;
1292
- let originalMaybeError = await this . #realmIndexQueryEngine. cardDocument (
1293
- url ,
1294
- ) ;
1291
+ let originalMaybeError =
1292
+ await this . #realmIndexQueryEngine. cardDocument ( url ) ;
1295
1293
if ( ! originalMaybeError ) {
1296
1294
return notFound ( request , requestContext ) ;
1297
1295
}
@@ -1954,8 +1952,8 @@ export class Realm {
1954
1952
operation : ( 'added' in data
1955
1953
? 'add'
1956
1954
: 'updated' in data
1957
- ? 'update'
1958
- : 'removed' ) as UpdateItem [ 'operation' ] ,
1955
+ ? 'update'
1956
+ : 'removed' ) as UpdateItem [ 'operation' ] ,
1959
1957
url : tracked . url ,
1960
1958
} ) ;
1961
1959
this . drainUpdates ( ) ;
0 commit comments