← All repositories

crossmate

A collaborative crossword app for iPhone and iPad

git clone https://code.inqk.net/crossmate.git


commit c55aee18a2ced9073240ccf16761f00334f54c07
parent 26ebc118492f085f6c0abd9b263c279abb6586a3
Author: Michael Camilleri <[email protected]>
Date:   Sun,  7 Jun 2026 09:47:39 +0900

Rename field on Archive record type

Diffstat

MCrossmate/Sync/Archive.swift | 4++--

1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Crossmate/Sync/Archive.swift b/Crossmate/Sync/Archive.swift

@@ -265,7 +265,7 @@ enum Archive {
 
         record["puzzleSource"] = try asset(for: Data(snapshot.puzzleSource.utf8), ext: "xd")
         record["cells"] = try asset(for: try encodeCells(snapshot.cells), ext: "json")
-        record["journal"] = try asset(for: try encodeJournals(snapshot.journal), ext: "json")
+        record["journals"] = try asset(for: try encodeJournals(snapshot.journal), ext: "json")
         return record
     }
 
@@ -324,7 +324,7 @@ enum Archive {
             .flatMap { $0.fileURL }
             .flatMap { try? Data(contentsOf: $0) }
             .flatMap { try? decodeCells($0) } ?? []
-        let journal = (record["journal"] as? CKAsset)
+        let journal = (record["journals"] as? CKAsset)
             .flatMap { $0.fileURL }
             .flatMap { try? Data(contentsOf: $0) }
             .flatMap { try? decodeJournals($0) } ?? []