From f4ee82fa2cf17ded0bd7ebdd2897f3e9da0f3453 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Thu, 24 Sep 2020 07:33:35 +0200 Subject: [PATCH] Fix PUT endpoints. --- .../components/common/SubmitChangesButton.tsx | 1 + client/src/components/windows/SongWindow.tsx | 27 +++++- client/src/lib/saveChanges.tsx | 15 ++++ .../endpoints/ModifyAlbumEndpointHandler.ts | 60 ++++++++------ .../endpoints/ModifyArtistEndpointHandler.ts | 41 +++++---- server/endpoints/ModifySongEndpointHandler.ts | 83 ++++++++++--------- 6 files changed, 141 insertions(+), 86 deletions(-) create mode 100644 client/src/lib/saveChanges.tsx diff --git a/client/src/components/common/SubmitChangesButton.tsx b/client/src/components/common/SubmitChangesButton.tsx index a6a794b..51ad1c5 100644 --- a/client/src/components/common/SubmitChangesButton.tsx +++ b/client/src/components/common/SubmitChangesButton.tsx @@ -4,6 +4,7 @@ import { Box, Button } from '@material-ui/core'; export default function SubmitChangesButton(props: any) { return