File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import * as authz from '../../authz/index.js' ;
2- import { CommunitySource } from '../../sources/index.js' ;
2+ import { CommunitySource , CoreSource , NextcladeSource } from '../../sources/index.js' ;
33import * as utils from '../../utils/index.js' ;
44import { splitPrefixIntoParts , joinPartsIntoPrefix } from '../../utils/prefix.js' ;
55import * as metaSources from '../../metaSources.js' ;
@@ -32,6 +32,8 @@ const getAvailable = async (req, res) => {
3232 return res . json ( {
3333 datasets : await Promise . all ( datasets . map ( async ( path ) => ( {
3434 request : await joinPartsIntoPrefix ( { source, prefixParts : [ path ] } ) ,
35+ // snapshots only for core & nextclade sources so far
36+ snapshots : source instanceof CoreSource || source instanceof NextcladeSource ,
3537 secondTreeOptions : source . secondTreeOptions ( path ) ,
3638 buildUrl : source instanceof CommunitySource
3739 ? `https://github.com/${ source . repo } `
You can’t perform that action at this time.
0 commit comments