1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

fix(adventure): add collection ID to adventure when creating a new adventure

This commit is contained in:
Sean Morley 2025-06-18 10:20:30 -04:00
parent 4f7d408460
commit 7ec4e5d0f5

View file

@ -456,6 +456,11 @@
}
}
// add this collection to the adventure
if (collection && collection.id) {
adventure.collections = [collection.id];
}
let res = await fetch('/api/adventures', {
method: 'POST',
headers: {