mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 14:59:36 +02:00
feat: include adventure visits in collection update requests
This commit is contained in:
parent
c6fa603a93
commit
6651557738
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ collection: null })
|
body: JSON.stringify({ collection: null, visits: adventure.visits })
|
||||||
});
|
});
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
addToast('info', `${$t('adventures.collection_remove_success')}`);
|
addToast('info', `${$t('adventures.collection_remove_success')}`);
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ collection: collectionId })
|
body: JSON.stringify({ collection: collectionId, visits: adventure.visits })
|
||||||
});
|
});
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
console.log('Adventure linked to collection');
|
console.log('Adventure linked to collection');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue