1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 22:55:13 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2023-09-24 21:17:41 +08:00
parent 821722165a
commit 189e3ec78e
3 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
const now = Date.now();
if (lastResult && lastChecking && now - lastChecking < 1000 * 60) {
// logger('repeated checking, ignored');
return lastResult || empty;
return lastResult;
}
lastChecking = now;
if (blockUpdate && blockUpdate.until > Date.now() / 1000) {
@@ -190,7 +190,6 @@ export async function checkUpdate(APPKEY: string, isRetry?: boolean) {
//@ts-ignore
message: result.message,
});
return lastResult;
}
return result;