Feature: Add support for recording when a book is finished, so that users can create Magic Shelves based on this information. (#803)
* Added migration for new field in user_book_progress table * Added ability to set date finished when book status changes to read, and reset date finished when book status changes to another value * Added ability to use date published in a Magic Shelf
This commit is contained in:
@@ -49,7 +49,7 @@ export function serializeDateRules(ruleOrGroup: any): any {
|
||||
};
|
||||
}
|
||||
|
||||
const isDateField = ruleOrGroup.field === 'publishedDate';
|
||||
const isDateField = ruleOrGroup.field === 'publishedDate' || ruleOrGroup.field === 'dateFinished';
|
||||
const serialize = (val: any) => (val instanceof Date ? val.toISOString().split('T')[0] : val);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user