forked from jenanemone/schidtter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psuedotext
20 lines (13 loc) · 1.06 KB
/
psuedotext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
08/13/22
added functions upvote and downvote, event listeners in main.js
Organized index.ejs to capture the ID from the DOM (hidden element)
FIXED failed to update upvotes.
FIXED Currently- added upvotes to main.js in the fetch causing connection to be refused by the server. removing line 23 from main.js will allow the passing of the ID to the server, but the Db was not updating the database based on merely the ID
DONEZO working on- passing data to the DB to update the upvote. We got back the 'upvote be done yo' client console log when passing just the ID, but the DB did not update. Right before logging off added lines 57-60 (inclusive) to server.js. having issues with the $set in the '/addOneUpvote' app.put method. Do not need lines 66 & 67 as they are not required for the app.put method.
8/19/22
Fixed put method for upvote and downvote.
Added data-id attribute in index.ejs
resolved: put methods
finished: finish delete method
finished: access thru data-id
working on- getting the containers to render correctly and center in the DOM through the EJS using CSS.