Skip to content

[Bug] /rom/{id}/props returns stale data #2972

@dravorle

Description

@dravorle

RomM version
4.6.1

Describe the bug
when updating the rom data with a put request, you get stale data back instead of the updated one

To Reproduce

Initial data is:

{
	"now_playing": true
}

If you send a put update like:

{
	"data": {
		"now_playing": false
	}
}

You will receive

{
	"now_playing": true
}

Even though it has been changed. A second request is necessary to get the new data to confirm changes

Expected behavior
You receive the updated data, in this example

{
	"now_playing": false
}

Additional context
Bug might have been introduced during the fix of #2890, I didn't check in older versions

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions