From 40f5f1b48abf90bec802b3040cda97053233bcea Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 2 Jun 2022 22:18:15 -0500 Subject: [PATCH] working through return instance of story bug --- js/models.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/models.js b/js/models.js index 1b550b0..b798926 100644 --- a/js/models.js +++ b/js/models.js @@ -94,7 +94,18 @@ class StoryList { { token: user.loginToken, story: newStory } ); - console.log("made it after the axios call"); + console.log("the response is : ", response); + + this.storyId = storyId; + this.title = title; + this.author = author; + this.url = url; + this.username = username; + this.createdAt = createdAt; + + let returnObj = { + ${response.data.} + }; return response; }