Rebuild the API runtime so Dokploy serves the SMS wallet routes.
The image only runs runtime/server.cjs, which was still the pre-wallet bundle. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -254,7 +254,7 @@ export class AgentService {
|
||||
});
|
||||
|
||||
const amounts = await this.prisma.order.findMany({
|
||||
where: { customerId },
|
||||
where: { userId: customerId },
|
||||
select: { finalAmount: true },
|
||||
});
|
||||
const total = amounts.reduce((sum, o) => sum + (o.finalAmount ?? 0), 0);
|
||||
|
||||
Reference in New Issue
Block a user