File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -747,6 +747,7 @@ class NamespaceBlob {
747
747
size,
748
748
etag,
749
749
create_time : flat_obj . lastModified ,
750
+ last_modified_time : flat_obj . lastModified ,
750
751
content_type : flat_obj . contentType ,
751
752
xattr : modified_xattr ,
752
753
tag_count : tag_count ,
Original file line number Diff line number Diff line change @@ -683,6 +683,9 @@ class NamespaceCache {
683
683
async_get_last_modified_time : async ( ) => {
684
684
const upload_res = await hub_promise ;
685
685
const last_modified_time = ( new Date ( upload_res . last_modified_time ) ) . getTime ( ) ;
686
+ if ( isNaN ( last_modified_time ) ) {
687
+ throw new Error ( 'Invalid last_modified_time returned from hub_promise, Expected a valid date or timestamp.' ) ;
688
+ }
686
689
return last_modified_time ;
687
690
} ,
688
691
upload_chunks_hook : this . update_cache_stats_hook ( params . bucket ) ,
You can’t perform that action at this time.
0 commit comments