From d1e49fcffee0d72cb2ae4377f0adabc1e4306494 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Wed, 28 Jul 2021 03:53:49 +0000 Subject: [PATCH] Add pruneall script and updated server to handle new field types --- pruneall | 4 ++++ server/app.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 pruneall diff --git a/pruneall b/pruneall new file mode 100755 index 0000000..f8ad464 --- /dev/null +++ b/pruneall @@ -0,0 +1,4 @@ +sudo docker image prune +sudo docker container prune +sudo docker volume prune +sudo docker system prune --volumes \ No newline at end of file diff --git a/server/app.js b/server/app.js index 7255bac..9c788da 100644 --- a/server/app.js +++ b/server/app.js @@ -111,7 +111,7 @@ const ENDPOINTDATA=[ }, { endpoint:"builds", - requiredfields:["user_id","creator","build_name","class1","created_on","last_modified","data"], + requiredfields:["users_id","creator","build_name","class1","created_on","last_modified","data"], optionalfields:["class2","likes"], excludedfields:[] //Fields to not output in GET. }, @@ -165,7 +165,7 @@ const ENDPOINTDATA=[ }, { endpoint:"users", - requiredfields:["username","email","created_on","role_id"], + requiredfields:["username","email","created_on","roles_id"], optionalfields:["avatar"], excludedfields:["password_hash"] //Fields to not output in GET. }