Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
alaminAppnap authored Sep 25, 2023
1 parent 53bcb56 commit 8a4b15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SMS/message-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function smsHistoryCreateOnFile(message,phoneNumber,response,csmsId){

if (fs.existsSync(filePath).size !=0) {
const fileData = fs.readFileSync(filePath, 'utf-8');
existingData = fileData;
existingData = JSON.parse(fileData);
}

existingData.push(newJsonObject);
Expand Down

0 comments on commit 8a4b15b

Please sign in to comment.