Skip to content

Commit 4dc23c2

Browse files
committed
add console log
1 parent 97376fa commit 4dc23c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/controllers/handleEmoteUnlockConfig.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ export const handleEmoteUnlockConfig = async (req: Request, res: Response) => {
3838
Body: buffer,
3939
});
4040

41-
await client.send(putObjectCommand);
41+
const result = await client.send(putObjectCommand);
42+
console.log("🚀 ~ handleEmoteUnlockConfig.ts:42 ~ result:", result);
4243

4344
emotePreviewUrl = `https://${bucketName}.s3.us-east-1.amazonaws.com/${fileName}`;
45+
console.log("🚀 ~ handleEmoteUnlockConfig.ts:45 ~ emotePreviewUrl:", emotePreviewUrl);
4446
} catch (error) {
4547
console.error("Error uploading file:", error);
4648
}
@@ -49,7 +51,7 @@ export const handleEmoteUnlockConfig = async (req: Request, res: Response) => {
4951
const unlockData = {
5052
emoteId: selectedEmote.id,
5153
emoteName: selectedEmote.name,
52-
emoteDescription: selectedEmote.description || emoteDescription,
54+
emoteDescription: emoteDescription,
5355
emotePreviewUrl,
5456
password: unlockCondition.value.toString().trim().toLowerCase(),
5557
stats: {

0 commit comments

Comments
 (0)