Skip to content

Commit 9be8997

Browse files
committed
min side: send bank_msg in separate field
1 parent 0b842bd commit 9be8997

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/donors/[id]/distributions/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function GET(req: NextRequest) {
6363
})),
6464
});
6565
} catch (e) {
66-
logError("donors/[id]/recurring/vipps: ", e);
66+
logError("donors/[id]/distributions: ", e);
6767
return Response.json({ message: "Something went wrong" }, { status: 500 });
6868
} finally {
6969
dbRelease(db);

app/donors/[id]/recurring/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ export async function GET(req: Request) {
2626
status: 200,
2727
content: donations.map((d) => ({
2828
id: d.id,
29-
kid: d.gateway_metadata?.bank_msg ?? d.id,
29+
kid: d.id,
30+
bank_msg: d.gateway_metadata?.bank_msg,
3031
cancelled: d.cancelled,
3132
createdAt: d.created_at.toISOString(),
3233
chargeDay: d.monthly_charge_day,

0 commit comments

Comments
 (0)