mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-03-04 11:04:08 +00:00
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
parent
2a6174e955
commit
8fc8ebac4d
@ -30,7 +30,7 @@ export async function datocmsQueryIntercept(query : any) : Promise<object> {
|
||||
let listingQueryWhitelist = getListingQueryDirectories();
|
||||
let interceptData = {};
|
||||
|
||||
if (listingDirectory.includes(parent)) {
|
||||
if (listingQueryWhitelist.includes(parent)) {
|
||||
interceptData = await datocmsListingQueryIntercept(query);
|
||||
} else if (pageQueryWhitelist.includes(parent)) {
|
||||
interceptData = await datocmsPageQueryIntercept(query);
|
||||
@ -69,7 +69,7 @@ function getPageQueryBypassWhitelist() : string[] {
|
||||
function getListingQueryDirectories() : string[] {
|
||||
//-----whitelist the listying types of content...
|
||||
|
||||
let directories : any[] = [];
|
||||
let directories : string[] = [];
|
||||
|
||||
directories.push('allEvents');
|
||||
directories.push('allPositions');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user