mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-24 12:24:46 +08:00
fix: cron condition
This commit is contained in:
@@ -37,9 +37,9 @@ export async function GET(request: NextRequest) {
|
|||||||
|
|
||||||
async function refreshRecordAndFavorites() {
|
async function refreshRecordAndFavorites() {
|
||||||
if (
|
if (
|
||||||
process.env.NEXT_PUBLIC_STORAGE_TYPE ||
|
(process.env.NEXT_PUBLIC_STORAGE_TYPE || 'localstorage') === 'localstorage'
|
||||||
'localstorage' === 'localstorage'
|
|
||||||
) {
|
) {
|
||||||
|
console.log('跳过刷新:当前使用 localstorage 存储模式');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user