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:
@@ -19,6 +19,7 @@ interface SpellPost {
|
||||
components?: string | null;
|
||||
limitations?: string | null;
|
||||
notes?: string | null;
|
||||
seriesSpellId?: string | null;
|
||||
}
|
||||
|
||||
interface GetSpellListData {
|
||||
@@ -115,6 +116,7 @@ ipcMain.handle(
|
||||
spell.notes || null,
|
||||
spell.id,
|
||||
lang,
|
||||
spell.seriesSpellId || null,
|
||||
);
|
||||
return result.id;
|
||||
},
|
||||
@@ -139,6 +141,7 @@ ipcMain.handle(
|
||||
spell.limitations || null,
|
||||
spell.notes || null,
|
||||
lang,
|
||||
spell.seriesSpellId || null,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user