From 37c145811d98a52ab72c52fc124fdbbef936caf8 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 24 Jun 2022 20:18:22 +0200 Subject: [PATCH] grant workspace read --- .../20220624180013_workspace_premium_grant.down.sql | 1 + .../20220624180013_workspace_premium_grant.up.sql | 3 +++ frontend/tsconfig.json | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 backend/migrations/20220624180013_workspace_premium_grant.down.sql create mode 100644 backend/migrations/20220624180013_workspace_premium_grant.up.sql diff --git a/backend/migrations/20220624180013_workspace_premium_grant.down.sql b/backend/migrations/20220624180013_workspace_premium_grant.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20220624180013_workspace_premium_grant.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20220624180013_workspace_premium_grant.up.sql b/backend/migrations/20220624180013_workspace_premium_grant.up.sql new file mode 100644 index 0000000000..08ab13a24c --- /dev/null +++ b/backend/migrations/20220624180013_workspace_premium_grant.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +GRANT SELECT ON workspace TO app; + diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 82036041fd..c39714312b 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -1,9 +1,11 @@ { "compilerOptions": { "moduleResolution": "node", - "module": "es2020", - "lib": ["es2021", "DOM"], - "target": "es2021", + "module": "esnext", + "lib": ["esnext", "DOM"], + "target": "esnext", + "preserveValueImports": true, + /** svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript to enforce using \`import type\` instead of \`import\` for Types.