mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: allow users to customize the refresh time for Daily Reviews (#1313)
* feat: Allow users to customize the refresh time for Daily Reviews * feat: Allow users to customize the refresh time for Daily Reviews. Lint fix * feat: Allow users to customize the refresh time for Daily Reviews. change daily review time offset to include only hour * feat: Allow users to customize the refresh time for Daily Reviews. Retrigger to try CodeQL pass. --------- Co-authored-by: Aswath S <aswath.s@thoughtworks.com>
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
export function convertToMillis(localSetting: LocalSetting) {
|
||||
const hoursToMillis = localSetting.dailyReviewTimeOffset * 60 * 60 * 1000;
|
||||
return hoursToMillis;
|
||||
}
|
||||
|
||||
export const isNullorUndefined = (value: any) => {
|
||||
return value === null || value === undefined;
|
||||
};
|
||||
|
Reference in New Issue
Block a user