From 944cc5b32c0a4fef1448da41e2989e0f8e59069d Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 6 Dec 2022 02:27:28 -0500 Subject: [PATCH] Fixed the bug with start keys --- frontend/components/utilities/attemptLogin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/components/utilities/attemptLogin.js b/frontend/components/utilities/attemptLogin.js index 767fcb400..4c6852625 100644 --- a/frontend/components/utilities/attemptLogin.js +++ b/frontend/components/utilities/attemptLogin.js @@ -134,8 +134,8 @@ const attemptLogin = async ( // If user is logging in for the first time, add the example keys if (isSignUp) { - await pushKeys( - { + await pushKeys({ + obj: { DATABASE_URL: [ "mongodb+srv://${DB_USERNAME}:${DB_PASSWORD}@mongodb.net", "personal", @@ -155,9 +155,9 @@ const attemptLogin = async ( WEBSITE_URL: ["http://localhost:3000", "shared"], STRIPE_SECRET_KEY: ["sk_test_7348oyho4hfq398HIUOH78", "shared"], }, - projectToLogin, - "Development" - ); + workspaceId: projectToLogin, + env: "Development" + }); } try { if (email) {