Giter Club home page Giter Club logo

Comments (8)

nghiatm341 avatar nghiatm341 commented on July 22, 2024

@MasterPi-2124

  • Quiz Record bug fix
  • Remove createAt

from cnweb30-backend.

nghiatm341 avatar nghiatm341 commented on July 22, 2024

Since createAt is almost like a primary key to the object in studentList, removing it causes mongo to automatically add _id property when the same record is added

from cnweb30-backend.

MasterPi-2124 avatar MasterPi-2124 commented on July 22, 2024

so I have to add also createdAt param when sending the PUT request? In the payload example, the createdAt param is in the object

from cnweb30-backend.

MasterPi-2124 avatar MasterPi-2124 commented on July 22, 2024

it's not finished yet, right? @nghiatm341 lmk when you merged that into main

from cnweb30-backend.

nghiatm341 avatar nghiatm341 commented on July 22, 2024

so I have to add also createdAt param when sending the PUT request? In the payload example, the createdAt param is in the object

@MasterPi-2124
At first I want to add that so you can add the time manually. But if you find it unnecessary I'll remove it

from cnweb30-backend.

MasterPi-2124 avatar MasterPi-2124 commented on July 22, 2024

current bugs:

  • when PUT a new record, the response still returns the old data (not updated with that new record pushed). Not sure if it is serious or not because I did not use that.
  • a student can submit a lot of times (duplicate check)

from cnweb30-backend.

nghiatm341 avatar nghiatm341 commented on July 22, 2024

@MasterPi-2124

  • when PUT a new record, the response still returns the old data (not updated with that new record pushed). Not sure if it is serious or not because I did not use that.

This is a default response of all api except get, they will return the old data before put, delete.
Would you like this to be removed or change? If change, do you mean change to return the updated version

  • a student can submit a lot of times (duplicate check)

How would you like this to play out? Should I check ip address, student id, or both?

from cnweb30-backend.

nghiatm341 avatar nghiatm341 commented on July 22, 2024

@MasterPi-2124

when PUT a new record, the response still returns the old data (not updated with that new record pushed). Not sure if it is serious or not because I did not use that.

This is the default with every update or delete. Do you wish to change it?

from cnweb30-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.