fix location

This commit is contained in:
Karol Wypchlo 2021-09-17 16:24:50 +02:00
parent 6588172e66
commit b7f19fe5d4
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 6 additions and 6 deletions

View File

@ -66,12 +66,12 @@ async function handleGetLink(
return; return;
} }
if (record && !record.skylink) { // if (record && !record.skylink) {
// TODO: we can retry the IPFS download and skynet upload here if // // TODO: we can retry the IPFS download and skynet upload here if
// time.Since(createdAt) exceeds some threshold // // time.Since(createdAt) exceeds some threshold
res.status(200).send({ error: "processing" }); // res.status(200).send({ error: "processing" });
return; // return;
} // }
// insert an empty record for the cid // insert an empty record for the cid
await recordsDB.insertOne({ cid, createdAt: new Date(), skylink: "" }); await recordsDB.insertOne({ cid, createdAt: new Date(), skylink: "" });