mirror of
https://github.com/LaconicNetwork/laconic.com.git
synced 2026-04-25 13:44:07 +00:00
Signed-off-by: Traxus <shyidx@gmail.com>
This commit is contained in:
parent
a9b0c275ff
commit
fc1d20f0d7
@ -24,7 +24,7 @@ function datocmsDateToIng(date : string) : number {
|
||||
|
||||
|
||||
//-----graphql query interception
|
||||
export async function datocmsQueryIntercept(query : any) : object {
|
||||
export async function datocmsQueryIntercept(query : any) : Promise<object> {
|
||||
let parent = pluckFirstParentFromQuery(query);
|
||||
let pageQueryWhitelist = getPageQueryBypassWhitelist();
|
||||
let listingDirectory = getListingDirectoryByQueryParent(parent);
|
||||
@ -103,7 +103,7 @@ function pluckFirstParentFromQuery(query : any) : string {
|
||||
|
||||
}
|
||||
|
||||
async function datocmsPageQueryIntercept(query : any) : object {
|
||||
async function datocmsPageQueryIntercept(query : any) : Promise<object> {
|
||||
|
||||
let parent : string = pluckFirstParentFromQuery(query);
|
||||
let jsonDirectory : string = path.join(process.cwd(), 'json/site_content');
|
||||
@ -128,7 +128,7 @@ async function datocmsPageQueryIntercept(query : any) : object {
|
||||
|
||||
}
|
||||
|
||||
async function datocmsListingQueryIntercept(query : any) : object {
|
||||
async function datocmsListingQueryIntercept(query : any) : Promise<object> {
|
||||
|
||||
let parent : string = pluckFirstParentFromQuery(query);
|
||||
let jsonData : object = {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user