Jorge
Jorge
WWasp
Created by Jorge on 1/6/2025 in #đŸ™‹questions
User last active timestamp
Perfect thanks
20 replies
WWasp
Created by Jorge on 1/6/2025 in #đŸ™‹questions
User last active timestamp
@kapa.ai what's the correct way to "catch" the successful login event in order to call updateLastActiveTimestamp
20 replies
WWasp
Created by Jorge on 1/6/2025 in #đŸ™‹questions
User last active timestamp
@kapa.ai so if I understand well, I have to implement by myself the logic to update this timestamp (e.g. at each user's login)
20 replies
WWasp
Created by Jorge on 1/6/2025 in #đŸ™‹questions
User last active timestamp
@kapa.ai as defined in prisma file: model User { id String @id @default(uuid()) createdAt DateTime @default(now()) email String? @unique username String? @unique lastActiveTimestamp DateTime @default(now()) isAdmin Boolean @default(false) ....
20 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai the official doc is not saying that: Dependencies In a Wasp project, dependencies are defined in a standard way for JavaScript projects: using the package.json file, located at the root of your project. You can list your dependencies under the dependencies or devDependencies fields. Adding a New Dependency To add a new package, like date-fns (a great date handling library), you use npm: npm install date-fns This command will add the package in the dependencies section of your package.json file. You will notice that there are some other packages in the dependencies section, like react and wasp. These are the packages that Wasp uses internally, and you should not modify or remove them. Using Packages that are Already Used by Wasp Internally In the current version of Wasp, if Wasp is already internally using a certain dependency (e.g. React) with a certain version specified, you are not allowed to define that same npm dependency yourself while specifying a different version. If you do that, you will get an error message telling you which exact version you have to use for that dependency. This means Wasp dictates exact versions of certain packages, so for example you can't choose the version of React you want to use. NOTE We are currently working on a restructuring that will solve this and some other quirks: check issue #734 to follow our progress.
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai how to retrieve data send in a form inside API ?
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai is this the right way to check user ? if (!context.user) { throw new HttpError(401); }
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
correct thanks
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai how to rather use this notation: curl -X GET http://localhost:3001/foo/bar?email=test@example.com&address=123-main-st
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
ok it works after app restart, thanks
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai give curl cmd for your example
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai are you sure about: api fooBar { fn: import { fooBar } from "@src/apis", entities: [Task], httpRoute: (GET, "/foo/bar/:email/:address") }
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai Does it work with an URL like: /foo/bar?email=test@test.com&address=test
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai In this example how to add e.g another parameter "address" ? api fooBar { fn: import { fooBar } from "@src/apis", entities: [Task], httpRoute: (GET, "/foo/bar/:email") }
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai using post I'm getting: failed to load resource origin is not allowed by access-control-allow-origin
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
OMFG it was a port issue, was using 3000 instead 3001 đŸ˜… thanks for your help man/bot!
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Custom API issue
@kapa.ai src git:(develop) ✗ curl -X GET http://localhost:3000/api/charts <!DOCTYPE html> <html lang="en"> <head> <script type="module"> import RefreshRuntime from "/@react-refresh" RefreshRuntime.injectIntoGlobalHook(window) window.$RefreshReg$ = () => {} window.$RefreshSig$ = () => (type) => type window.vite_plugin_react_preamble_installed = true </script> <script type="module" src="/@vite/client"></script> <meta charset="utf-8" /> <link rel="shortcut icon" href="/favicon.ico" /> <meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no" /> <meta name="theme-color" content="#000000" /> <link rel="manifest" href="/manifest.json" /> <meta property='og:type' content='website' /> <meta property='og:title' content='Test App' /> <meta property='og:url' content='https://testapp.com' /> <meta property='og:description' content='Test app' /> <script async src='https://www.googletagmanager.com/gtag/js?id=G-XXXXXX'></script> <script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-XXXXXX');</script> <title>Test app</title> </head> <body> <noscript>You need to enable JavaScript to run this app.</noscript> <div id="root"></div> <script type="module" src="/src/index.tsx?t=1733784893322"></script> </body> </html>
52 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Customize loading screen background color
hey thanks ! It works thanks, but I still having a very little delay before where the background is white
12 replies
WWasp
Created by Jorge on 12/9/2024 in #đŸ™‹questions
Customize loading screen background color
@kapa.ai it seems to be the generated code by wasp framework
12 replies
WWasp
Created by Jorge on 9/20/2024 in #đŸ™‹questions
Plan switching not reflected in the database
Solved, my webhook was not configured đŸ˜… thanks
6 replies