Kbk
Kbk
WWasp-lang
Created by Kbk on 6/18/2024 in #đŸ™‹questions
Fly.io problem after deployment
@kapa.ai server machine is rebooting all time i got this error, its not possible to open console on server migrate found failed migrations in the target database, new migrations will not be applied. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve
11 replies
WWasp-lang
Created by Kbk on 6/7/2024 in #đŸ™‹questions
Hello,
I dont want to skip verification I just need to "manualy" activate users who dont click on link
5 replies
WWasp-lang
Created by Kbk on 5/22/2024 in #đŸ™‹questions
DB stuidio on fly.io
it works i used info from here https://github.com/wasp-lang/wasp/issues/1464 nice work thanks đŸ˜‰
6 replies
WWasp-lang
Created by Kbk on 5/17/2024 in #đŸ™‹questions
Modification of sing up. Add additional fields in sing up form and user entity.
We will work next week on this feature I will let you know here how it goes đŸ™‚
7 replies
WWasp-lang
Created by Kbk on 5/5/2024 in #đŸ™‹questions
Deploying on fly.io
yes indeed, I made deploy from "fresh" project at morning and it works fine I dont have this error now
'Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: failed to calculate checksum of ref e89ea33e-dc1f-4e53-88b3-60b92f4ab750::sn1guuphpovc2oudy8lca8nuj: "/node_modules/.prisma/client/schema.prisma": not found\n' I still have log in console about missing database_url but fly.io automaticly assigne this env and connection with db works fine. Thank you for advice about this issue!
21 replies
WWasp-lang
Created by Kbk on 5/5/2024 in #đŸ™‹questions
Deploying on fly.io
I will try to make deployment from "fresh" project
21 replies
WWasp-lang
Created by Kbk on 5/5/2024 in #đŸ™‹questions
Deploying on fly.io
https://github.com/Kbk17/CryptoTX/blob/development/CryptoTX/ Here is my repo. Thank you. Im quite sure that I mixed sth up by mistake đŸ˜„
21 replies
WWasp-lang
Created by Kbk on 5/5/2024 in #đŸ™‹questions
Deploying on fly.io
1) localy app works 2) yes opensaas 3) wasp: { version: "^0.13.0" 4) i made changes in .env.server database_url to check if i will be able to connect somehow but when dont work i commented that and make wasp clean. First time when i was trying to deploy i leaved this place commented (as in default) to let wasp pass secrets I think maybe something with database_url is wrong
21 replies
WWasp-lang
Created by Kbk on 5/5/2024 in #đŸ™‹questions
Deploying on fly.io
No description
21 replies
WWasp-lang
Created by Kbk on 5/4/2024 in #đŸ™‹questions
Hello,
yes đŸ™‚ In next step thank you
8 replies
WWasp-lang
Created by Kbk on 4/17/2024 in #đŸ™‹questions
GetPaginatedTransactions problem with query with decimals
okay i got it works
7 replies
WWasp-lang
Created by Kbk on 4/17/2024 in #đŸ™‹questions
GetPaginatedTransactions problem with query with decimals
I have this query in queries.ts to handle it ... export type GetPaginatedTransactionsInput = { skip: number; limit: number; typeFilter?: string; statusFilter?: string[]; }; export type GetPaginatedTransactionsOutput = { transactions: { id: number; type: string; fiatCurrency: string; cryptoCurrency: string; amountFiat: string; // Convert Decimal to string exchangeRate: string; // Convert Decimal to string commission: string; // Convert Decimal to string amountCrypto: string; // Convert Decimal to string createdAt: Date; status: string; userId: number; }[]; totalPages: number; }; export const getPaginatedTransactions: GetPaginatedTransactions<GetPaginatedTransactionsInput, GetPaginatedTransactionsOutput> = async ( args, context ) => { if (!context.user) { throw new HttpError(401, "User must be logged in to access their transactions."); } const whereClause: any = { userId: context.user.id }; if (args.typeFilter) whereClause.type = args.typeFilter; if (args.statusFilter) whereClause.status = { in: args.statusFilter }; const transactions = await context.entities.Transaction.findMany({ skip: args.skip, take: args.limit, where: whereClause, orderBy: { createdAt: 'desc' } }); const totalTransactionsCount = await context.entities.Transaction.count({ where: whereClause }); const totalPages = Math.ceil(totalTransactionsCount / args.limit); return { transactions: transactions.map(tran => ({ ...tran, amountFiat: tran.amountFiat.toString(), // Convert Decimal to string for safe JSON transmission exchangeRate: tran.exchangeRate.toString(), commission: tran.commission.toString(), amountCrypto: tran.amountCrypto.toString(), createdAt: tran.createdAt, status: tran.status, userId: tran.userId })), totalPages }; }; ...
7 replies
WWasp-lang
Created by Kbk on 4/17/2024 in #đŸ™‹questions
Prisma update Update available 4.16.2 -> 5.12.1
It works, just changed prisma version to 4.0.0. Thanks đŸ™‚
8 replies
WWasp-lang
Created by Kbk on 4/17/2024 in #đŸ™‹questions
Prisma update Update available 4.16.2 -> 5.12.1
Thanks bot đŸ˜„ Wasp ] auth/providers/types.ts(11,37): error TS2694: Namespace '"/mnt/c/Users/patku/projects/opensaas/CryptoTX/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/index".Prisma' has no exported member 'UserCreateInput'. [ Wasp ] auth/utils.ts(131,17): error TS2694: Namespace '"/mnt/c/Users/patku/projects/opensaas/CryptoTX/app/.wasp/out/sdk/wasp/node_modules/.prisma/client/index".Prisma' has no exported member 'AuthWhereInput'. [ Wasp ] auth/utils.ts(192,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'. [ Wasp ] auth/utils.ts(192,62): error TS2339: Property 'code' does not exist on type 'unknown'. [ Wasp ] auth/utils.ts(198,27): error TS2339: Property 'PrismaClientValidationError' does not exist on type 'typeof Prisma'. [ Wasp ] auth/utils.ts(209,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'. [ Wasp ] auth/utils.ts(209,62): error TS2339: Property 'code' does not exist on type 'unknown'. [ Wasp ] auth/utils.ts(220,27): error TS2339: Property 'PrismaClientKnownRequestError' does not exist on type 'typeof Prisma'. now i got this isue how to resolve it any ideas?
8 replies