From c5799921d1c85d5b1ba54d7a50dbce7b4123b877 Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Tue, 4 Oct 2022 08:16:49 +0200 Subject: [PATCH] Strapi Schema fixed register Console log removed --- backend/strapi/src/api/note/content-types/note/schema.json | 3 +-- frontend/svelte/src/routes/register/+page.svelte | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/strapi/src/api/note/content-types/note/schema.json b/backend/strapi/src/api/note/content-types/note/schema.json index 356eed2..e064764 100644 --- a/backend/strapi/src/api/note/content-types/note/schema.json +++ b/backend/strapi/src/api/note/content-types/note/schema.json @@ -22,8 +22,7 @@ "owners": { "type": "relation", "relation": "manyToMany", - "target": "plugin::users-permissions.user", - "inversedBy": "notes" + "target": "plugin::users-permissions.user" }, "lastViewed": { "type": "datetime", diff --git a/frontend/svelte/src/routes/register/+page.svelte b/frontend/svelte/src/routes/register/+page.svelte index 4c48a50..88e7cea 100644 --- a/frontend/svelte/src/routes/register/+page.svelte +++ b/frontend/svelte/src/routes/register/+page.svelte @@ -13,7 +13,6 @@ * Handles the button click. */ async function handleSubmit() { - console.log("TEST") const endpoint = "http://localhost:1337/api/auth/local/register"; const payload = { email: email,