lim-james/wall-server

is_edited & last_edited_time not being returned correctly on PATCH post

Closed this issue · 1 comments

Current Response

{
    "post_id": 13,
    "user_id": 7,
    "title": "New Lorum Ipsum",
    "body": "an even more generic body",
    "creation_time": "0001-01-01T00:00:00Z",
    "is_edited": false,
    "last_edited_time": "0001-01-01T00:00:00Z"
}

Expected Response

{
    "post_id": 13,
    "user_id": 7,
    "title": "New Lorum Ipsum",
    "body": "an even more generic body",
    "creation_time": /* Correct creation time */,
    "is_edited": true,
    "last_edited_time": /* Correct last edited time */
}

Resolved in ee273f0