Skip to content

Commit b485aa8

Browse files
committed
fix formatting
1 parent 674ad32 commit b485aa8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

functions/src/webhooks/transcription.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AssemblyAI } from "assemblyai"
33
import { db, Timestamp } from "../firebase"
44
import { sha256 } from "js-sha256"
55

6+
67
export const transcription = functions
78
.runWith({ secrets: ["ASSEMBLY_API_KEY"] })
89
.https.onRequest(async (req, res) => {
@@ -11,9 +12,7 @@ export const transcription = functions
1112
// If we get a request with the right header and status, get the
1213
// transcription from the assembly API.
1314
const assembly = new AssemblyAI({
14-
apiKey: process.env.ASSEMBLY_API_KEY
15-
? process.env.ASSEMBLY_API_KEY
16-
: ""
15+
apiKey: process.env.ASSEMBLY_API_KEY ? process.env.ASSEMBLY_API_KEY : ""
1716
})
1817

1918
const transcript = await assembly.transcripts.get(

0 commit comments

Comments
 (0)