Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adrianhall opened this issue Dec 7, 2024 · 0 comments
Open

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

adrianhall opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working Server Improvements or additions to the server code

Comments

@adrianhall
Copy link
Collaborator

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
@adrianhall adrianhall added Bug Something isn't working Server Improvements or additions to the server code labels Dec 7, 2024
@adrianhall adrianhall self-assigned this Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Server Improvements or additions to the server code
Projects
None yet
Development

No branches or pull requests

1 participant