Skeudenn / main/db/clear-library / clearLibraryData
Function: clearLibraryData() ​
clearLibraryData(
db,libraryRepo,readingListRepo):ClearedLibrary
Defined in: src/main/db/clear-library.ts:24
Deletes the active user's reading lists, then every library entry (with its credits, the people and everyone's progress), in one transaction: a failure on the second step leaves the lists as they were, instead of lists emptied of a library that is still there. db must be the database both repositories use.
Parameters ​
db ​
DatabaseSync