mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Not sure why this keeps happening, but here's another small patch
This commit is contained in:
parent
b5851b4c38
commit
84ec899957
2
.github/workflows/ensure-build.yml
vendored
2
.github/workflows/ensure-build.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '14'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- name: Restore node_modulescache
|
- name: Restore node_modules cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
|
@ -54,7 +54,7 @@ module.exports = exports = async function process (tasks, cache) {
|
|||||||
});
|
});
|
||||||
log.info(`Task (${task.action.name}) failed for file ${output}, fell back to saved duplicate ${status.duplicate}`);
|
log.info(`Task (${task.action.name}) failed for file ${output}, fell back to saved duplicate ${status.duplicate}`);
|
||||||
} catch (err2) {
|
} catch (err2) {
|
||||||
log.error(`Task (${task.action.name}) failed for file ${output}.\n`, err);
|
log.error(`Task (${task.action.name}) failed for file ${output}, ${status.duplicate} could not be copied.\n`, err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -73,7 +73,8 @@ module.exports = exports = async function tweets (pages) {
|
|||||||
|
|
||||||
function attachTweet (dict, tweetid) {
|
function attachTweet (dict, tweetid) {
|
||||||
if (!hasOwn(twitterCache, tweetid) && twitterBackup[tweetid]) {
|
if (!hasOwn(twitterCache, tweetid) && twitterBackup[tweetid]) {
|
||||||
log.error(`Tweet ${tweetid} is missing from the cache.`);
|
log.error(`Tweet ${tweetid} is missing from the cache but exists in backup? How did we get here?`);
|
||||||
|
twitterCache[tweetid] = tweetparse(twitterBackup[tweetid]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const tweet = twitterCache[tweetid];
|
const tweet = twitterCache[tweetid];
|
||||||
|
1546
twitter-backup.json
1546
twitter-backup.json
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user