Skip to content

Commit

Permalink
chore: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jun 30, 2024
1 parent 62b8aa8 commit eb641e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/api/src/routes/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { knex, query } from '../util/db';
import { sqlClientPool } from '../clients/sqlClient';
import { validateKey } from '../util/func';

const toFingerprint2 = async (sshKey) => {
const toFingerprint = async (sshKey) => {
try {
const pkey = new Buffer(sshKey).toString('base64')
const pubkey = await validateKey(pkey, "public")
Expand All @@ -24,7 +24,7 @@ const toFingerprint2 = async (sshKey) => {
const mapFingerprints = async (keys) => {
const fingerprintKeyMap = await Promise.all(
keys.map(async sshKey => {
const fp = await toFingerprint2(sshKey)
const fp = await toFingerprint(sshKey)
return {fingerprint: fp, key: sshKey}
}))
return fingerprintKeyMap
Expand Down

0 comments on commit eb641e1

Please sign in to comment.