aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/sync/crdt/document-manager.ts
diff options
context:
space:
mode:
authornsfisis <54318333+nsfisis@users.noreply.github.com>2026-02-13 20:23:31 +0900
committerGitHub <noreply@github.com>2026-02-13 20:23:31 +0900
commitce6bbcea37d014b9575299d2d079fda7ccb5628d (patch)
tree1fe3a43f1c7ab469bb0154a1495028cc42b414a0 /src/client/sync/crdt/document-manager.ts
parent9a52e7ad3b2d46c523caf079794fdb7757375b91 (diff)
parent1afb825860cd293b8065d51746f4b23e4e8dab5d (diff)
downloadkioku-ce6bbcea37d014b9575299d2d079fda7ccb5628d.tar.gz
kioku-ce6bbcea37d014b9575299d2d079fda7ccb5628d.tar.zst
kioku-ce6bbcea37d014b9575299d2d079fda7ccb5628d.zip
Merge pull request #15 from nsfisis/claude/remove-card-limit-10fVw
Remove newCardsPerDay limit and simplify card study logic
Diffstat (limited to 'src/client/sync/crdt/document-manager.ts')
-rw-r--r--src/client/sync/crdt/document-manager.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/sync/crdt/document-manager.ts b/src/client/sync/crdt/document-manager.ts
index 5c32b67..b753d88 100644
--- a/src/client/sync/crdt/document-manager.ts
+++ b/src/client/sync/crdt/document-manager.ts
@@ -187,7 +187,6 @@ function getEmptyDocumentData(
userId: "",
name: "",
description: null,
- newCardsPerDay: 20,
createdAt: 0,
deletedAt: null,
},
@@ -301,7 +300,6 @@ export function deckToCrdtDocument(deck: LocalDeck): CrdtDeckDocument {
userId: deck.userId,
name: deck.name,
description: deck.description,
- newCardsPerDay: deck.newCardsPerDay,
createdAt: deck.createdAt.getTime(),
deletedAt: deck.deletedAt?.getTime() ?? null,
},
@@ -319,7 +317,6 @@ export function crdtDocumentToDeck(
userId: doc.data.userId,
name: doc.data.name,
description: doc.data.description,
- newCardsPerDay: doc.data.newCardsPerDay,
createdAt: new Date(doc.data.createdAt),
updatedAt: new Date(doc.meta.lastModified),
deletedAt: doc.data.deletedAt ? new Date(doc.data.deletedAt) : null,