r3dkar-social-media-api
Advanced tools
Comparing version
{ | ||
"name": "r3dkar-social-media-api", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "API for social media", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -97,3 +97,3 @@ import fs from 'fs'; | ||
users[userIndex].friends.forEach(friendId => unfriendUsers(id, friendId)); | ||
getPosts(id).forEach(postId => deletePost(postId)); | ||
getPosts().filter(post => post.authorid === id).forEach(postId => deletePost(postId)); | ||
@@ -100,0 +100,0 @@ users.splice(userIndex, 1); |
11126
0.32%