mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 11:50:04 -06:00
🎨 改进删除闪卡
This commit is contained in:
@@ -142,7 +142,7 @@ func removeRiffCards(c *gin.Context) {
|
||||
for _, blockID := range blockIDsArg {
|
||||
blockIDs = append(blockIDs, blockID.(string))
|
||||
}
|
||||
err := model.RemoveFlashcards(deckID, blockIDs)
|
||||
err := model.RemoveFlashcardsByBlockIDs(deckID, blockIDs)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
||||
@@ -372,7 +372,7 @@ func getAllDueFlashcards() (ret []*Flashcard) {
|
||||
return
|
||||
}
|
||||
|
||||
func RemoveFlashcards(deckID string, blockIDs []string) (err error) {
|
||||
func RemoveFlashcardsByBlockIDs(deckID string, blockIDs []string) (err error) {
|
||||
deckLock.Lock()
|
||||
defer deckLock.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user