From 270cec35e17ff4a1fa2ee1690e596b3e3003fe34 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 22 Jun 2021 18:17:52 -0400 Subject: Update service file to match updated endpoint --- src/components/moments/Moment.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/components') 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 = ({ 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); } -- cgit v1.2.3-70-g09d2