mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-09 17:49:53 +08:00
🚧 WIP(custom): optimize gallery db sync logic and force refresh gallery
This commit is contained in:
@@ -107,8 +107,8 @@ class GalleryDB {
|
||||
console.log('init gallery db')
|
||||
}
|
||||
|
||||
static getInstance(): DBStore {
|
||||
if (!GalleryDB.#instance) {
|
||||
static getInstance(forceRefresh: boolean = false): DBStore {
|
||||
if (!GalleryDB.#instance || forceRefresh) {
|
||||
GalleryDB.#instance = new DBStore(DB_PATH, 'gallery')
|
||||
}
|
||||
return GalleryDB.#instance
|
||||
|
||||
Reference in New Issue
Block a user