Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/repco-core/src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export interface DataSource {
fetchByUri(uri: string): Promise<SourceRecordForm[] | null>
fetchByUriBatch(uris: string[]): Promise<SourceRecordForm[]>
/**
* Determines whether the data source is capable of fetching records by UID.
* Determines whether the data source is capable of fetching a particular uri
*
* @param uid - The UID of the record to fetch.
* @param uri The uri in question
* @returns `true` if the data source can fetch the record, `false` otherwise.
*/
canFetchUri(uri: string): boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/repco-core/src/datasources/cba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export class CbaDataSource implements DataSource {
type: parts[1],
id: parts[2],
}
} else if (parts[1] === 'r') {
} else if (parts[0] === 'r') {
if (parts.length !== 4) return null
return {
kind: 'revision',
Expand Down