mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:58:38 +08:00
27 lines
645 B
JavaScript
27 lines
645 B
JavaScript
import update from 'immutability-helper';
|
|
import { createDefaultResponseFragments } from 'coral-framework/utils';
|
|
|
|
export default {
|
|
fragments: {
|
|
...createDefaultResponseFragments(
|
|
'RequestAccountDeletionResponse',
|
|
'RequestDownloadLinkResponse',
|
|
'CancelAccountDeletionResponse'
|
|
),
|
|
},
|
|
mutations: {
|
|
DownloadCommentHistory: () => ({
|
|
updateQueries: {
|
|
CoralEmbedStream_Profile: previousData =>
|
|
update(previousData, {
|
|
me: {
|
|
lastAccountDownload: {
|
|
$set: new Date().toISOString(),
|
|
},
|
|
},
|
|
}),
|
|
},
|
|
}),
|
|
},
|
|
};
|