diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-07-27 15:51:17 -0400 |
|---|---|---|
| committer | Ivan Chen <ivan@tagg.id> | 2021-07-29 13:12:47 -0400 |
| commit | 4170b75030ff07339a5d59a32206dc6e2d843ed7 (patch) | |
| tree | 05e1584aafdf550ba13b93760d8ae18cad757237 /src/services | |
| parent | 265814c782e4196bf57cd2fb507f80546498618e (diff) | |
Accept caption
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/MomentService.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/services/MomentService.ts b/src/services/MomentService.ts index 3a677ccc..0292f9ea 100644 --- a/src/services/MomentService.ts +++ b/src/services/MomentService.ts @@ -223,7 +223,10 @@ export const deleteMomentTag = async (moment_tag_id: string) => { * @param value: string | undefined * @returns a PresignedURLResponse object */ -export const handlePresignedURL = async (momentCategory: string) => { +export const handlePresignedURL = async ( + caption: string, + momentCategory: string, +) => { try { // TODO: just a random filename for video poc, we should not need to once complete const randHash = Math.random().toString(36).substring(7); @@ -236,6 +239,7 @@ export const handlePresignedURL = async (momentCategory: string) => { }, body: JSON.stringify({ filename, + caption: caption, category: momentCategory, }), }); |
