oops
This commit is contained in:
parent
d13fdc8927
commit
cddcb51a57
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -61,6 +61,7 @@ app.get("/cached/*", (req, res) => {
|
|||
imgWait += 0.1
|
||||
setTimeout(() => {
|
||||
imgData = cachedImages.imgs[imgURL]
|
||||
console.log(imgData)
|
||||
if (imgData) {
|
||||
fs.createReadStream(path.join(imgCache, imgData.file)).pipe(res)
|
||||
} else {
|
||||
|
@ -87,7 +88,7 @@ var cachedImages = JSON.parse(fs.readFileSync(cacheFile))
|
|||
var constants = JSON.parse(fs.readFileSync(path.join(__dirname, "constants.json")))
|
||||
var activityImages = constants.activityImages
|
||||
|
||||
var thumborURL = "https://thumbor-production-0e82.up.railway.app/"
|
||||
var thumborURL = "https://thumbor-production-0e82.up.railway.app/unsafe"
|
||||
var imgExtension = "png"
|
||||
var thumborArgs = `filters:format(${imgExtension})/`
|
||||
|
||||
|
|
Loading…
Reference in a new issue