mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
record whether a pack is temporary in the pack itself
using the expiresAt field no longer determines if the pack is temporary because archived packs have an expiresAt field added when they are retrieved from s3
This commit is contained in:
parent
9543c21dd7
commit
8d900013d9
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ module.exports = PackManager =
|
|||
end_ts: last.meta.end_ts
|
||||
v: first.v
|
||||
v_end: last.v
|
||||
temporary: temporary
|
||||
if temporary
|
||||
newPack.expiresAt = new Date(Date.now() + 7 * DAYS)
|
||||
logger.log {project_id, doc_id, newUpdates}, "inserting updates into new pack"
|
||||
|
|
Loading…
Reference in a new issue