Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

created_at is being updated with a PUT request #65

Open
ninjasun opened this issue Oct 23, 2018 · 3 comments
Open

created_at is being updated with a PUT request #65

ninjasun opened this issue Oct 23, 2018 · 3 comments

Comments

@ninjasun
Copy link

ninjasun commented Oct 23, 2018

I got the same time every update. This is the model configuration:

"mixins": {
      "TimeStamp" : {
        "createdAt" : "created_at",
        "updatedAt" : "updated_at"
      } 
  },
  "idInjection": true,
  "options": {
    "validateUpsert": false
  },

using mysql db

@clarkbw
Copy link
Owner

clarkbw commented Oct 23, 2018

This is probably related to the issue with upserts etc and isn't an easy fix. 😬

@npedrini
Copy link

Can you link to the issue(s) detailing the issue with upserts, and/or explain what you think is going on here? Aside from data integrity, it's particularly an issue for UIs that display records by created date. Would be great to find a solution or workaround.

@MarcAstr0
Copy link

Any update on this issue? I'm having the exact same problem as @ninjasun

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants