Skip to content

Commit

Permalink
chore: rename to key_prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanCassiere committed Jun 25, 2024
1 parent 0813878 commit aa3e7bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const dbEnv = {
};
/**
* Returns a unique database ID
* @param key
* @param key_prefix
* @param key_env
* @returns
* @example
Expand All @@ -25,8 +25,8 @@ const dbEnv = {
* ```
*/
export const createDbId = (
key: keyof typeof dbPrefixes,
key_prefix: keyof typeof dbPrefixes,
key_env: keyof typeof dbEnv = env.NODE_ENV === "production" ? "live" : "dev",
) => {
return [dbPrefixes[key], dbEnv[key_env], createId()].filter(Boolean).join("");
return [dbPrefixes[key_prefix], dbEnv[key_env], createId()].filter(Boolean).join("");
};

0 comments on commit aa3e7bc

Please sign in to comment.