mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 03:20:05 +08:00
use config variable scheduledDeletionDelayHours to schedule deletion time on hoc (#1775)
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user