Skip to content

Commit 301a1ee

Browse files
authored
[RQ-654] : Fix: add Id to Errored Records (requestly#304)
* fix: update getRawFileData method to use path parameter instead of id * fix: update writeRawRecord method to use path parameter instead of id * Add id to ErroredRecords
1 parent ac66404 commit 301a1ee

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/renderer/actions/local-sync/fs-manager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ export class FsManager {
699699

700700
if (entityParsingResult?.type === "error") {
701701
erroredRecords.push({
702+
id: getIdFromPath(resource.path),
702703
name: getFileNameFromPath(entityParsingResult.error.path),
703704
path: entityParsingResult.error.path,
704705
error: entityParsingResult.error.message,
@@ -748,6 +749,7 @@ export class FsManager {
748749
});
749750
if (parsedResult.type === "error") {
750751
erroredRecords.push({
752+
id: getIdFromPath(resource.path),
751753
name: getNameOfResource(resource),
752754
path: parsedResult.error.path,
753755
error: parsedResult.error.message,

src/renderer/actions/local-sync/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export type CollectionRecord = {
134134
};
135135

136136
export type ErroredRecord = {
137+
id: string;
137138
name: string;
138139
path: string;
139140
error: string;

0 commit comments

Comments
 (0)