Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- saveProfileSettings(newPhoto: string, userId: string) {
- const path = `users/${userId}`;
- const data = {
- profilePhoto: newPhoto
- };
- this.db.object(path).update(data);
- this.router.navigate(['chat']);
- }
Add Comment
Please, Sign In to add comment