Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ackuq committed Sep 18, 2023
1 parent 5c7ce0c commit da82244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/party-data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function writePartyData(
const fileName = partyFileName(abbreviation);

if (!fs.existsSync(fileName)) {
fs.writeFileSync(fileName, JSON.stringify(data, null, 2));
fs.writeFileSync(fileName, JSON.stringify(data, null, 2) + "\n");
return;
}
const storedData = JSON.parse(
Expand Down Expand Up @@ -74,7 +74,7 @@ export function writePartyData(
result.fetchDate = incomingData.fetchDate;
storedData[link] = result;
}
fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2));
fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2) + "\n");
}

export function updateStandpoint(abbreviation: string, standpoint: Standpoint) {
Expand All @@ -83,7 +83,7 @@ export function updateStandpoint(abbreviation: string, standpoint: Standpoint) {
fs.readFileSync(fileName).toString(),
) as PartyData;
storedData[standpoint.url] = standpoint;
fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2));
fs.writeFileSync(fileName, JSON.stringify(storedData, null, 2) + "\n");
}

function readSubjectData() {
Expand Down
2 changes: 1 addition & 1 deletion packages/party-data/parties/s.json
Original file line number Diff line number Diff line change
Expand Up @@ -2029,4 +2029,4 @@
"fetchDate": "2023-09-17T17:52:38.986Z",
"party": "s"
}
}
}

0 comments on commit da82244

Please sign in to comment.