Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/constants/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const FIRESTORE_COLLECTIONS = {
OBJECTS: "objects",
GRADIENTS: "gradients",
COMPOSITION: "composition",
EDITED_RECIPES: "recipes_edited",
JOB_STATUS: "job_status",
PACKING_INPUTS: "example_packings",
EDITABLE_FIELDS: "editable_fields",
Expand Down Expand Up @@ -41,7 +40,6 @@ export const FIRESTORE_FIELDS = {

export const RETENTION_POLICY = {
RETENTION_PERIODS: {
RECIPES_EDITED: 24 * 60 * 60 * 1000, // 24 hours
JOB_STATUS: 30 * 24 * 60 * 60 * 1000, // 30 days
},

Expand Down
4 changes: 0 additions & 4 deletions src/utils/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ const getDocsByIds = async (coll: string, ids: string[]) => {
const docCleanup = async () => {
const now = Date.now();
const collectionsToClean = [
{
name: FIRESTORE_COLLECTIONS.EDITED_RECIPES,
retention: RETENTION_POLICY.RETENTION_PERIODS.RECIPES_EDITED,
},
{
name: FIRESTORE_COLLECTIONS.JOB_STATUS,
retention: RETENTION_POLICY.RETENTION_PERIODS.JOB_STATUS,
Expand Down
Loading