diff options
author | Volpeon <git@volpeon.ink> | 2021-10-19 20:49:43 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-19 20:49:43 +0200 |
commit | bb41634991fe81e0bde73c1e5ddf2541bec69cff (patch) | |
tree | 8194a25f4b91ddb03c7d1d697431521161e13a89 /src/services | |
parent | Fix (diff) | |
download | feralbot-bb41634991fe81e0bde73c1e5ddf2541bec69cff.tar.gz feralbot-bb41634991fe81e0bde73c1e5ddf2541bec69cff.tar.bz2 feralbot-bb41634991fe81e0bde73c1e5ddf2541bec69cff.zip |
Fix db
Diffstat (limited to 'src/services')
-rw-r--r-- | src/services/postDatabase.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/postDatabase.ts b/src/services/postDatabase.ts index ab5db28..63227a2 100644 --- a/src/services/postDatabase.ts +++ b/src/services/postDatabase.ts | |||
@@ -38,7 +38,7 @@ export class PostDatabase { | |||
38 | const entries = t.array(PostDatabaseEntryC).decode(fileContent); | 38 | const entries = t.array(PostDatabaseEntryC).decode(fileContent); |
39 | 39 | ||
40 | if (f.either.isRight(entries)) { | 40 | if (f.either.isRight(entries)) { |
41 | this.entries = this.max ? entries.right.slice(0, -1 * this.max) : entries.right; | 41 | this.entries = this.max ? entries.right.slice(-1 * this.max) : entries.right; |
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||