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, props: Props,
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => { ): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
try { try {
const response = await axios.post<PayloadProps>(`/settings/ttl`, { const response = await axios.post<PayloadProps>(`/settings/ttl`, props);
props,
});
return { return {
statusCode: 200, statusCode: 200,