Deleting a collection should detach associated drafts from it (#5082)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -87,7 +87,9 @@ export const seed = async () =>
|
||||
},
|
||||
{ transaction }
|
||||
);
|
||||
await document.publish(collection.createdById, { transaction });
|
||||
await document.publish(collection.createdById, collection.id, {
|
||||
transaction,
|
||||
});
|
||||
await collection.reload({ transaction });
|
||||
return {
|
||||
user,
|
||||
|
||||
Reference in New Issue
Block a user