(fileId, author)
| 54 | } |
| 55 | |
| 56 | export async function removeFile(fileId, author) { |
| 57 | await apiRequest(REMOVE_FILE, {body: {PostID: fileId}}); |
| 58 | const applicant = await getApplicant(author); |
| 59 | await setApplicant({ |
| 60 | ...applicant, |
| 61 | Posts: applicant.Posts.filter((post) => post.toString() !== fileId.toString()), |
| 62 | }); |
| 63 | } |
no test coverage detected