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
bug: fix no image being uploaded
author
Kieran Klukas
date
1 year ago
(Apr 20, 2025, 2:00 PM -0400)
commit
4c7b385b
4c7b385b570b2a3d5fd4838f9d1e99576e754e23
parent
b0a69bd1
b0a69bd18852afa4dddb83d7cbda9556c9ef4124
+10
-7
1 changed file
Expand all
Collapse all
Unified
Split
src
features
takes
handlers
settings.ts
+10
-7
src/features/takes/handlers/settings.ts
Reviewed
···
193
193
const values = payload.view.state.values;
194
194
const userId = body.user.id;
195
195
196
196
-
const file = [
197
197
-
values.project_banner?.project_banner_input?.files?.[0]
198
198
-
?.url_private_download as string,
199
199
-
];
196
196
+
const file = values.project_banner?.project_banner_input?.files?.[0]
197
197
+
?.url_private_download as string;
198
198
+
199
199
+
console.log(file);
200
200
+
200
201
try {
201
201
-
const projectBannerUrl = await deployToHackClubCDN(file).then(
202
202
-
(res) => res.files[0]?.deployedUrl,
203
203
-
);
202
202
+
const projectBannerUrl = file
203
203
+
? await deployToHackClubCDN([file]).then(
204
204
+
(res) => res.files[0]?.deployedUrl,
205
205
+
)
206
206
+
: undefined;
204
207
205
208
const hackatimeVersion = values.hackatime_version
206
209
?.hackatime_version_input?.selected_option