Add JSON.stringify

This commit is contained in:
James Cole 2023-03-05 07:00:04 +01:00
parent b1e08b1084
commit 83a89181bc
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -88,7 +88,7 @@ function stopSorting() {
//$.post('api/v1/accounts/' + id, {order: newOrder, _token: token});
$.ajax({
url: 'api/v1/accounts/' + id,
data: {order: newOrder},
data: JSON.stringify({order: newOrder}),
type: 'PUT',
});
});