tangled
alpha
login
or
join now
dunkirk.sh
/
smokie
1
fork
atom
a fun bot for the hc slack
1
fork
atom
overview
issues
pulls
pipelines
feat: use slack date in title
dunkirk.sh
11 months ago
bbe2ef7f
aa18290a
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+2
-2
1 changed file
expand all
collapse all
unified
split
src
features
takes
services
upload.ts
+2
-2
src/features/takes/services/upload.ts
···
2
import { db } from "../../../libs/db";
3
import { takes as takesTable } from "../../../libs/schema";
4
import { eq, and } from "drizzle-orm";
5
-
import { prettyPrintTime } from "../../../libs/time";
6
import * as Sentry from "@sentry/bun";
7
8
export default async function upload() {
···
125
title_url: `${process.env.API_URL}/api/video/${take.id}`,
126
title: {
127
type: "plain_text",
128
-
text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })}`,
129
},
130
thumbnail_url: `https://cachet.dunkirk.sh/users/${payload.user}/r`,
131
alt_text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })} uploaded with the description: *${take.description}*`,
···
2
import { db } from "../../../libs/db";
3
import { takes as takesTable } from "../../../libs/schema";
4
import { eq, and } from "drizzle-orm";
5
+
import { generateSlackDate, prettyPrintTime } from "../../../libs/time";
6
import * as Sentry from "@sentry/bun";
7
8
export default async function upload() {
···
125
title_url: `${process.env.API_URL}/api/video/${take.id}`,
126
title: {
127
type: "plain_text",
128
+
text: `take from ${generateSlackDate(takeUploadedAt)}`,
129
},
130
thumbnail_url: `https://cachet.dunkirk.sh/users/${payload.user}/r`,
131
alt_text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })} uploaded with the description: *${take.description}*`,