Skip to content

Commit a364e7c

Browse files
authored
fix: sqlite remove unnecessary parameter (#4017)
1 parent d76f5cf commit a364e7c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/cache/sqlite-cache-store.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ module.exports = class SqliteCacheStore {
163163
etag = ?,
164164
cacheControlDirectives = ?,
165165
cachedAt = ?,
166-
staleAt = ?,
167-
deleteAt = ?
166+
staleAt = ?
168167
WHERE
169168
id = ?
170169
`)
@@ -182,9 +181,8 @@ module.exports = class SqliteCacheStore {
182181
cacheControlDirectives,
183182
vary,
184183
cachedAt,
185-
staleAt,
186-
deleteAt
187-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
184+
staleAt
185+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
188186
`)
189187

190188
this.#deleteByUrlQuery = this.#db.prepare(
@@ -298,7 +296,6 @@ module.exports = class SqliteCacheStore {
298296
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
299297
value.cachedAt,
300298
value.staleAt,
301-
value.deleteAt,
302299
existingValue.id
303300
)
304301
} else {
@@ -316,8 +313,7 @@ module.exports = class SqliteCacheStore {
316313
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
317314
value.vary ? JSON.stringify(value.vary) : null,
318315
value.cachedAt,
319-
value.staleAt,
320-
value.deleteAt
316+
value.staleAt
321317
)
322318
}
323319

0 commit comments

Comments
 (0)