aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-22 18:17:52 -0400
committerIvan Chen <ivan@tagg.id>2021-06-22 18:18:12 -0400
commit270cec35e17ff4a1fa2ee1690e596b3e3003fe34 (patch)
tree78b2a4b840e51cec2364cae5980585371f6b74c2 /src/components
parentafb2c5b57faef1c809e8fdf3c7a5c1b1eab7e999 (diff)
Update service file to match updated endpoint
Diffstat (limited to 'src/components')
-rw-r--r--src/components/moments/Moment.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index d2f7be2e..34b2c7ea 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -1,4 +1,3 @@
-import AsyncStorage from '@react-native-community/async-storage';
import {useNavigation} from '@react-navigation/native';
import React from 'react';
import {Alert, StyleProp, StyleSheet, View, ViewStyle} from 'react-native';
@@ -75,8 +74,7 @@ const Moment: React.FC<MomentProps> = ({
if (fileName.endsWith('.heic') || fileName.endsWith('.HEIC')) {
fileName = fileName.split('.')[0] + '.jpg';
}
- const user = await AsyncStorage.getItem('username');
- let presignedURL = await handlePresignedURL(user || '', fileName);
+ let presignedURL = await handlePresignedURL(fileName, title);
console.log('presigned' + JSON.stringify(presignedURL));
handleVideoUpload(vid, presignedURL);
}