Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement File Updating Function #99

Open
emmalgs opened this issue Aug 30, 2023 · 0 comments
Open

Implement File Updating Function #99

emmalgs opened this issue Aug 30, 2023 · 0 comments

Comments

@emmalgs
Copy link

emmalgs commented Aug 30, 2023

What it is

Implement a function in the FileSystemService to update user data in an existing file using the FileSystem module.

Context

Updating user data files is required when performing user data updates.

Acceptance Criteria

  • A function named updateFile is defined in the FileSystemService module.
  • The function accepts a user ID and updated user data as parameters.
    *The function reads the existing JSON file (based on the user ID) using fs.readFile.
  • The function updates the necessary fields with the provided data.
  • The function writes the updated data back to the JSON file using fs.writeFile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant