Introduce series management functionality and repository updates
- Added `series-world.repo.ts` to handle database operations related to series worlds and their elements. - Implemented `series-sync.repo.ts` for managing synchronization between books and series. - Expanded `spell.ipc.ts` data models to include `seriesSpellId` for spell synchronization. - Refactored `insertSpellTag` method in `spelltag.repo.ts` for improved error handling and logic clarity.
This commit is contained in:
@@ -1068,7 +1068,11 @@ export default class Sync {
|
||||
|
||||
const bookToolsQuery: SyncedBookToolsResult | null = BookRepo.fetchSyncedBookTools(userId, currentBookId, lang);
|
||||
const bookTools: SyncedBookTools | null = bookToolsQuery ? {
|
||||
lastUpdate: bookToolsQuery.last_update
|
||||
lastUpdate: bookToolsQuery.last_update,
|
||||
charactersEnabled: bookToolsQuery.characters_enabled === 1,
|
||||
worldsEnabled: bookToolsQuery.worlds_enabled === 1,
|
||||
locationsEnabled: bookToolsQuery.locations_enabled === 1,
|
||||
spellsEnabled: bookToolsQuery.spells_enabled === 1
|
||||
} : null;
|
||||
|
||||
const bookSpells: SyncedSpell[] = allSpells
|
||||
|
||||
Reference in New Issue
Block a user