Show correct download link in status

This commit is contained in:
Matt McWilliams 2023-06-30 10:53:59 -04:00
parent 27ac4104dc
commit 4009ed345b
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -92,7 +92,7 @@ async function status(id) {
jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`; jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`;
} }
else if (rows[0].completed !== null) { else if (rows[0].completed !== null) {
jobStatus = `Completed ${rows[0].completed} <a href="/model/${rows[0].model}/${id}">Download</a>`; jobStatus = `Completed ${rows[0].completed} <a href="/model/${id}">Download</a>`;
} }
else if (rows[0].started !== null) { else if (rows[0].started !== null) {
jobStatus = `Started ${rows[0].started}`; jobStatus = `Started ${rows[0].started}`;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -92,7 +92,7 @@ async function status (id : string) : Promise<string> {
} else if (rows[0].failed !== null) { } else if (rows[0].failed !== null) {
jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`; jobStatus = `Failed <br /> <pre>${rows[0].meta}</pre>`;
} else if (rows[0].completed !== null) { } else if (rows[0].completed !== null) {
jobStatus = `Completed ${rows[0].completed} <a href="/model/${rows[0].model}/${id}">Download</a>`; jobStatus = `Completed ${rows[0].completed} <a href="/model/${id}">Download</a>`;
} else if (rows[0].started !== null) { } else if (rows[0].started !== null) {
jobStatus = `Started ${rows[0].started}`; jobStatus = `Started ${rows[0].started}`;
} }