Skip to content

Commit dbdda16

Browse files
author
Invers3
committed
Update addpost.js
Testing
1 parent ab36d40 commit dbdda16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addpost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ const newPost = {
66
content: 'Este es el contenido de mi primer post'
77
};
88

9-
fs.writeFileSync(path.join(__dirname, 'hello_post.json'), JSON.stringify(newPost), 'utf8');
9+
fs.writeFileSync(path.join(__dirname, '..', 'hello_post.json'), JSON.stringify(newPost), 'utf8');
1010
console.log('Archivo post.json creado exitosamente');

0 commit comments

Comments
 (0)