This commit is contained in:
Daniel 2025-03-20 20:40:43 +08:00
parent 9945ad7a7a
commit b883f07cb4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 3 deletions

View file

@ -936,8 +936,7 @@ func (tx *Transaction) doAddFlashcards(operation *Operation) (ret *TxErr) {
continue
}
cardID := ast.NewNodeID()
deck.AddCard(cardID, blockID)
deck.AddCard(ast.NewNodeID(), blockID)
}
if err := deck.Save(); err != nil {