Merge pull request #1177 from palash-signoz/set-retention

fix: set retention query is fixed
This commit is contained in:
palash-signoz 2022-05-20 14:04:21 +05:30 committed by GitHub
commit 914be6e4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}`
: '' : ''
}`, }`,
); );