fix: set retention query is fixed

This commit is contained in:
Palash gupta 2022-05-20 13:39:23 +05:30
parent 1315b43aad
commit bbed3fda22
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6

View File

@ -11,7 +11,7 @@ const setRetention = async (
const response = await axios.post<PayloadProps>( const response = await axios.post<PayloadProps>(
`/settings/ttl?duration=${props.totalDuration}&type=${props.type}${ `/settings/ttl?duration=${props.totalDuration}&type=${props.type}${
props.coldStorage props.coldStorage
? `&coldStorage=${props.coldStorage};toColdDuration=${props.toColdDuration}` ? `&coldStorage=${props.coldStorage}&toColdDuration=${props.toColdDuration}`
: '' : ''
}`, }`,
); );