From 26f08e31092520e06aefb4ff473a915b0ebfde85 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 4 Apr 2023 18:57:38 +0100 Subject: [PATCH] fix lint --- ApiDocs/Service/Model.ts | 7 +++---- ApiDocs/views/main/{queries.ejs => data-types.ejs} | 0 ApiDocs/views/partials/nav.ejs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename ApiDocs/views/main/{queries.ejs => data-types.ejs} (100%) diff --git a/ApiDocs/Service/Model.ts b/ApiDocs/Service/Model.ts index 9c332059da..34d8bac5b6 100644 --- a/ApiDocs/Service/Model.ts +++ b/ApiDocs/Service/Model.ts @@ -173,7 +173,6 @@ export default class ServiceHandler { } ); - pageData.deleteRequest = await LocalCache.getOrSetString( 'model', 'delete-request', @@ -194,7 +193,6 @@ export default class ServiceHandler { } ); - pageData.listResponse = await LocalCache.getOrSetString( 'model', 'list-response', @@ -207,8 +205,9 @@ export default class ServiceHandler { pageData.exampleObjectID = ObjectID.generate(); - pageData.apiPath = DashboardApiRoute.toString() + currentResource.model.crudApiPath?.toString(); - + pageData.apiPath = + DashboardApiRoute.toString() + + currentResource.model.crudApiPath?.toString(); return res.render('pages/index', { page: page, diff --git a/ApiDocs/views/main/queries.ejs b/ApiDocs/views/main/data-types.ejs similarity index 100% rename from ApiDocs/views/main/queries.ejs rename to ApiDocs/views/main/data-types.ejs diff --git a/ApiDocs/views/partials/nav.ejs b/ApiDocs/views/partials/nav.ejs index f9d73f62aa..b594d34389 100644 --- a/ApiDocs/views/partials/nav.ejs +++ b/ApiDocs/views/partials/nav.ejs @@ -227,7 +227,7 @@ href="/docs/permissions">Permissions
  • Queries
  • + href="/docs/data-types">Data Types
  • Errors