alpha
Login
or
Join now
dunkirk.sh
/
smokie
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: use slack date in title
author
Kieran Klukas
date
1 year ago
(Apr 3, 2025, 8:16 PM -0400)
commit
bbe2ef7f
bbe2ef7f35f62eb58047899ad0f476d855022dec
parent
aa18290a
aa18290adb07a4878ec5c840fc4726dcdf077c84
+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
Reviewed
···
2
2
import { db } from "../../../libs/db";
3
3
import { takes as takesTable } from "../../../libs/schema";
4
4
import { eq, and } from "drizzle-orm";
5
5
-
import { prettyPrintTime } from "../../../libs/time";
5
5
+
import { generateSlackDate, prettyPrintTime } from "../../../libs/time";
6
6
import * as Sentry from "@sentry/bun";
7
7
8
8
export default async function upload() {
···
125
125
title_url: `${process.env.API_URL}/api/video/${take.id}`,
126
126
title: {
127
127
type: "plain_text",
128
128
-
text: `takes from ${takeUploadedAt?.toLocaleString("en-CA", { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false })}`,
128
128
+
text: `take from ${generateSlackDate(takeUploadedAt)}`,
129
129
},
130
130
thumbnail_url: `https://cachet.dunkirk.sh/users/${payload.user}/r`,
131
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}*`,