GUI-STUDIO commited on
Commit
bf6d016
·
1 Parent(s): 06ce494

Update showtime.ts

Browse files
Files changed (1) hide show
  1. src/sub-router/showtime.ts +8 -0
src/sub-router/showtime.ts CHANGED
@@ -542,6 +542,10 @@ async function F_handle_process(arg0: {
542
  });
543
 
544
  if (_file_to_serve) {
 
 
 
 
545
  undocumented_file = _file_to_serve;
546
  document_the_file();
547
 
@@ -565,6 +569,10 @@ async function F_handle_process(arg0: {
565
  // CHECK DOCUMENTED FILES
566
  const _file_data = await check_documented_file();
567
 
 
 
 
 
568
  if (_file_data?.in_bucket && !_file_data.in_db) {
569
  document_the_file();
570
  }
 
542
  });
543
 
544
  if (_file_to_serve) {
545
+ if (job_id) {
546
+ upload_jobs.delete(job_id);
547
+ }
548
+
549
  undocumented_file = _file_to_serve;
550
  document_the_file();
551
 
 
569
  // CHECK DOCUMENTED FILES
570
  const _file_data = await check_documented_file();
571
 
572
+ if (!_file_data?.in_bucket && !_file_data?.in_db && job_id) {
573
+ upload_jobs.delete(job_id);
574
+ }
575
+
576
  if (_file_data?.in_bucket && !_file_data.in_db) {
577
  document_the_file();
578
  }