use config variable scheduledDeletionDelayHours to schedule deletion time on hoc (#1775)

This commit is contained in:
Leandro
2018-08-01 23:48:11 +02:00
committed by Wyatt Johnson
parent c3e162dd56
commit 2edb8e8d0a
@@ -3,6 +3,8 @@ import { gql } from 'react-apollo';
import moment from 'moment';
import update from 'immutability-helper';
import { scheduledDeletionDelayHours } from '../../config';
export const withRequestDownloadLink = withMutation(
gql`
mutation DownloadCommentHistory {
@@ -48,7 +50,7 @@ export const withRequestAccountDeletion = withMutation(
});
const scheduledDeletionDate = moment()
.add(24, 'hours')
.add(scheduledDeletionDelayHours, 'hours')
.toDate();
const data = update(prev, {