feat(art): merge donate message into comment when promoted
Build and Push Image / build-backend (push) Successful in 20s
Build and Push Image / build-frontend (push) Successful in 1m38s
Build and Push Image / push (push) Successful in 47s

This commit is contained in:
2026-06-11 12:45:08 +07:00 Unverified
parent 972c8f2045
commit ee652979eb
+2
View File
@@ -34,6 +34,7 @@ import {
} from "../rubgram/admin/@modal/manual/client";
import { DownloadButton } from "../rubgram/client";
import { getPostHogClient } from "@/lib/posthog-server";
import { sql } from "drizzle-orm";
const { TMN_DEST_PHONE_NUM, SASTIFY_API_PRIVKEY } = process.env as Record<
string,
@@ -213,6 +214,7 @@ export default async function () {
.onConflictDoUpdate({
target: submissions.uid,
set: {
comment: sql`CONCAT(${submissions.comment}, ${"\n"}, ${message})`,
promoted: true,
},
});