feat: ttl api integration

This commit is contained in:
Pranshu Chittora 2022-04-04 15:26:29 +05:30
parent 8367c106bc
commit 5be1eb58b2
No known key found for this signature in database
GPG Key ID: 3A9E57A016CC0626

View File

@ -8,9 +8,7 @@ const setRetention = async (
props: Props,
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
try {
const response = await axios.post<PayloadProps>(`/settings/ttl`, {
props,
});
const response = await axios.post<PayloadProps>(`/settings/ttl`, props);
return {
statusCode: 200,