2022-04-01 03:40:07 +08:00
|
|
|
import setTranscript from '/imports/api/audio-captions/server/modifiers/setTranscript';
|
|
|
|
|
2023-03-13 21:11:04 +08:00
|
|
|
export default async function transcriptUpdated({ header, body }) {
|
2022-04-01 03:40:07 +08:00
|
|
|
const { meetingId } = header;
|
|
|
|
|
2022-04-13 23:00:45 +08:00
|
|
|
const {
|
|
|
|
transcriptId,
|
|
|
|
transcript,
|
|
|
|
} = body;
|
2022-04-01 03:40:07 +08:00
|
|
|
|
2023-03-13 21:11:04 +08:00
|
|
|
await setTranscript(meetingId, transcriptId, transcript);
|
2022-04-01 03:40:07 +08:00
|
|
|
}
|