Skip to content

PUT <item> does not return updatedAt/version in the content #162

@adrianhall

Description

@adrianhall

Describe the bug

PUT /tables/todoitem/1234

{
	"id": "1234",
	"title": "new title",
	"isComplete": true
}

Should return a complete and updated record; however, the following is returned:

{
	"title": "new title",
	"isComplete": true,
	"updatedAt": "1970-01-01T00:00:00.000Z",
	"version": "",
	"id": "1234",
	"deleted": false
}

Note that the updatedAt and version are null/empty/blank. However, re-retrieving the item using a GET /tables/todoitem/1234 will return the correct response.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy the datasync-server using azd up
  2. Using Insomnia, create an item.
  3. Using Insomnia, do the operation above.
  4. See error

Expected behavior

The response from the server should be correct.

What platforms?

Note: Any bug or feature request that is opened for an unsupported environment will be automatically closed.

  • Server:
    • Version of dotnet being used to compile? net 9.0
    • Library versions? 8.0.4
    • What database are you using? Azure SQL
    • Where are you running the server? Azure App Service

Metadata

Metadata

Assignees

Labels

ServerImprovements or additions to the server code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions