From 9fbc1ba3ecf29c6d31127685399bc769a7cba0e8 Mon Sep 17 00:00:00 2001 From: sudhir-b Date: Thu, 10 Aug 2023 19:18:24 +0100 Subject: [PATCH] Fix broken pg-meta endpoint --- package.json | 2 +- src/hooks/view.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 37f8fdf..e944201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@backengine/codegen", - "version": "1.0.13", + "version": "1.0.14", "description": "Generate code for Backengine projects.", "bin": "build/index.js", "files": [ diff --git a/src/hooks/view.ts b/src/hooks/view.ts index da45225..7b99aff 100644 --- a/src/hooks/view.ts +++ b/src/hooks/view.ts @@ -10,7 +10,7 @@ export type ViewsResponse = const parseViewNames = async (): Promise => { const response = await axios.get( - `${process.env.BACKENGINE_BASE_URL}/api/v1/projects/${process.env.BACKENGINE_PROJECT_ID}/pg-meta/tables`, + `${process.env.BACKENGINE_BASE_URL}/api/v1/projects/${process.env.BACKENGINE_PROJECT_ID}/pg-meta/views`, { headers: { Authorization: `Bearer ${process.env.BACKENGINE_API_KEY}`,