Merge pull request #569 from lbryio/564-ffprobe-fails
fix: ffprobe fails
This commit is contained in:
commit
69cd9532d4
1 changed files with 8 additions and 8 deletions
|
@ -14,7 +14,7 @@ const claimGet = ({ ip, originalUrl, params }, res) => {
|
||||||
const claimId = params.claimId;
|
const claimId = params.claimId;
|
||||||
let resolveResult;
|
let resolveResult;
|
||||||
let getResult;
|
let getResult;
|
||||||
// resolve the claim
|
|
||||||
db.Claim.resolveClaim(name, claimId)
|
db.Claim.resolveClaim(name, claimId)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
@ -28,13 +28,13 @@ const claimGet = ({ ip, originalUrl, params }, res) => {
|
||||||
throw new Error(`Unable to Get ${name}#${claimId}`);
|
throw new Error(`Unable to Get ${name}#${claimId}`);
|
||||||
}
|
}
|
||||||
getResult = result;
|
getResult = result;
|
||||||
})
|
if (result.completed) {
|
||||||
.then(() => {
|
return createFileRecordDataAfterGet(resolveResult, getResult)
|
||||||
return createFileRecordDataAfterGet(resolveResult, getResult);
|
|
||||||
})
|
|
||||||
.then(fileData => {
|
.then(fileData => {
|
||||||
const upsertCriteria = { name, claimId };
|
const upsertCriteria = {name, claimId};
|
||||||
return db.upsert(db.File, fileData, upsertCriteria, 'File');
|
return db.upsert(db.File, fileData, upsertCriteria, 'File');
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const { message, completed } = getResult;
|
const { message, completed } = getResult;
|
||||||
|
|
Loading…
Reference in a new issue