dexie: fix bucketlist

Signed-off-by: Varun Patil <radialapps@gmail.com>
dexie
Varun Patil 2023-10-01 14:27:08 -07:00
parent b02bd2aaef
commit 0360a08b87
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ export async function go() {
* @param dayid Day ID
*/
export async function getDaysLocal(): Promise<IDay[]> {
if (!_enabledBucketIds?.length) return [];
if (!getEnabledBucketIds()?.length) return [];
const days: IDay[] = [];
@ -89,7 +89,7 @@ export async function getDaysLocal(): Promise<IDay[]> {
* @param dayid Day ID
*/
export async function getDayLocal(dayid: number): Promise<IPhoto[]> {
if (!_enabledBucketIds?.length) return [];
if (!getEnabledBucketIds()?.length) return [];
return (
await db.local