Skip to content

Commit

Permalink
updated history
Browse files Browse the repository at this point in the history
  • Loading branch information
alaminAppnap authored Sep 25, 2023
1 parent 7521f12 commit a2546d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SMS/message-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const path = require('path');

async function smsHistoryCreate(message,phoneNumber,response,csmsId){
try {

smsHistoryCreateOnFile(message,phoneNumber,response,csmsId);

/** this code for mode */
Expand Down Expand Up @@ -42,7 +42,7 @@ async function smsHistoryCreateOnFile(message,phoneNumber,response,csmsId){

existingData.push(newJsonObject);

fs.writeFileSync(filePath, JSON.stringify(existingData, null, 2));
fs.writeFileSync(filePath, (existingData));

return { success: true, message: 'Message history created successfully' };
} catch (error) {
Expand Down

0 comments on commit a2546d2

Please sign in to comment.