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: {