Skip to content

Commit

Permalink
use inherited type
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 3, 2025
1 parent 79d470f commit b92591e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/drivers/redis.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { TransactionOptions } from "../types";
import { defineDriver, joinKeys } from "./utils";
// TODO: use named import in v2
import Redis, {
Expand Down Expand Up @@ -91,7 +90,7 @@ export default defineDriver((opts: RedisOptions) => {
},
setItemRaw:
opts.raw === true
? async (key: string, value: unknown, tOptions: TransactionOptions) => {
? async (key, value, tOptions) => {
const _value = normalizeValue(value);
const ttl = tOptions?.ttl ?? opts.ttl;
if (ttl) {
Expand Down

0 comments on commit b92591e

Please sign in to comment.