Change queue name

This commit is contained in:
Hongbo Wu
2022-11-11 10:14:46 +08:00
parent c09074d901
commit ce18d33ae1

View File

@ -9,13 +9,10 @@ import { buildLogger } from './logger'
import { nanoid } from 'nanoid'
import { google } from '@google-cloud/tasks/build/protos/protos'
import { IntegrationType } from '../entity/integration'
import { promisify } from 'util'
import * as jwt from 'jsonwebtoken'
import { signFeatureToken } from '../services/features'
import View = google.cloud.tasks.v2.Task.View
const logger = buildLogger('app.dispatch')
const signToken = promisify(jwt.sign)
// Instantiates a client.
const client = new CloudTasksClient()
@ -343,7 +340,7 @@ export const enqueueTextToSpeech = async ({
priority,
textType = 'ssml',
bucket = env.fileUpload.gcsUploadBucket,
queue = 'omnivore-demo-text-to-speech-queue',
queue = 'omnivore-text-to-speech-queue',
location = env.gcp.location,
isUltraRealisticVoice = false,
language,