fix comment

This commit is contained in:
Hongbo Wu 2024-04-21 10:42:00 +08:00
parent 3e925e0193
commit e093c9e096

View file

@ -122,15 +122,28 @@ export const contentFetchRequestHandler: RequestHandler = async (req, res) => {
try {
const fetchResult = await fetchContent(url, locale, timezone)
const finalUrl = fetchResult.finalUrl
<<<<<<< Updated upstream
=======
<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
let urlHash: string | undefined
const content = fetchResult.content
if (content) {
<<<<<<< Updated upstream
// hash final to use as key
=======
// hash final url to use as key
>>>>>>> Stashed changes
urlHash = hash(finalUrl)
await uploadToBucket(urlHash, content)
console.log('content uploaded to bucket', urlHash)
}
<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
>>>>>>> Stashed changes
const savePageJobs = users.map((user) => ({
userId: user.id,