From 0d52f985bd5423001d2574832a209db2c2dd5247 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 1 Dec 2021 16:49:46 -0500 Subject: [PATCH] Pad: Reuse `getKeyRevisionNumber` when testing if key rev --- src/node/db/Pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 8a5888090..822f008b5 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -90,7 +90,7 @@ class Pad { // ex. getNumForAuthor if (authorId !== '') this.pool.putAttrib(['author', authorId]); - if (newRev % 100 === 0) { + if (newRev === this.getKeyRevisionNumber(newRev)) { newRevData.meta.pool = this.pool; newRevData.meta.atext = this.atext; }