stringify contnet

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-19 11:16:53 +03:00
parent 2abe8e9c5f
commit 37ae560d8c
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -87,7 +87,7 @@ async function commitChanges(filePath, file) {
const blobResponse = await axios.post( const blobResponse = await axios.post(
`https://api.github.com/repos/${owner}/${repo}/git/blobs`, `https://api.github.com/repos/${owner}/${repo}/git/blobs`,
{ {
content: newContent, content: JSON.stringify(newContent),
encoding: 'utf-8', encoding: 'utf-8',
}, },
{ {