From fe9abe4b4b92e888b1429992a5ee92eb4c045a39 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 24 Feb 2023 19:58:10 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E9=97=AA=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/riff.go | 2 +- kernel/model/flashcard.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/api/riff.go b/kernel/api/riff.go index 68f445cec..0cc51928b 100644 --- a/kernel/api/riff.go +++ b/kernel/api/riff.go @@ -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() diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go index 8487d15ae..e254b69dc 100644 --- a/kernel/model/flashcard.go +++ b/kernel/model/flashcard.go @@ -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()