mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-26 00:57:02 +00:00
Add garbage collection function to remove version data after specified period without update
This commit is contained in:
1 parent
4d295f5f18
commit
9679e5b130
2 files changed
+27
-1
No files matched your search
@@ -27,7 +27,7 @@ const Markdown = require('naturalcrit/markdown.js');
|
||||
const { DEFAULT_BREW_LOAD } = require('../../../../server/brewDefaults.js');
|
||||
const { printCurrentBrew, fetchThemeBundle } = require('../../../../shared/helpers.js');
|
||||
|
||||
import { updateHistory } from '../../utils/versionHistory.js';
|
||||
import { updateHistory, versionHistoryGarbageCollection } from '../../utils/versionHistory.js';
|
||||
|
||||
const googleDriveIcon = require('../../googleDrive.svg');
|
||||
|
||||
@@ -205,6 +205,7 @@ const EditPage = createClass({
|
||||
}));
|
||||
|
||||
updateHistory(this.state.brew);
|
||||
versionHistoryGarbageCollection();
|
||||
|
||||
const transfer = this.state.saveGoogle == _.isNil(this.state.brew.googleId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user