TekkenChicken / chicken-server

Backend for Tekken Chicken app
2 stars 2 forks source link

Move timestamp to the top level of the JSON object of metadata endpoint #9

Closed bdickason closed 7 years ago

bdickason commented 7 years ago

Endpoint: http://bdickason.com:3001/api/metadata

Change request: Any time a character is updated, the last_updated field for the entire object should be changed (rather than on a per-character basis)

From @ndejesus1227 So I checked the meta data and see the last_updated value is inside the data for each character I was hoping to see it on the highest level Like, if any character at all got updated it would update the last_updated value regardless of who it was specifically maybe later on we can do something where it only checks who got updated but for right now, ya know?

dayhaysoos commented 7 years ago

I actually gave @srstafford1996 that feedback in the facebook chat! Word for word haha. It'll get taken care of :)

bdickason commented 7 years ago

@ndejesus1227 I just copy/pasted what you said here so we could keep track of it :P

bdickason commented 7 years ago

@srstafford1996 Ugly solution, but it works. Basic happy path test coverage included