0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 01:12:44 +00:00

Add garbage collection function to remove version data after specified period without update

This commit is contained in:
G.Ambatte
2024-09-07 14:00:31 +12:00
parent 4d295f5f18
commit 9679e5b130
2 changed files with 27 additions and 1 deletions

View File

@@ -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);