mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-03-26 18:22:08 -04:00
feat: include adventure visits in collection update requests
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ collection: null })
|
||||
body: JSON.stringify({ collection: null, visits: adventure.visits })
|
||||
});
|
||||
if (res.ok) {
|
||||
addToast('info', `${$t('adventures.collection_remove_success')}`);
|
||||
@@ -97,7 +97,7 @@
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ collection: collectionId })
|
||||
body: JSON.stringify({ collection: collectionId, visits: adventure.visits })
|
||||
});
|
||||
if (res.ok) {
|
||||
console.log('Adventure linked to collection');
|
||||
|
||||
Reference in New Issue
Block a user