mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat(core): support splitting audio blobs before submitting to backend (#11572)
fix AF-2484
This commit is contained in:
@@ -163,7 +163,10 @@ module.exports = {
|
||||
|
||||
// parse 'file' fields
|
||||
const containsFile = node.variableDefinitions.some(def => {
|
||||
const varType = def?.type?.type?.name?.value;
|
||||
const varType =
|
||||
def.type.kind === 'NamedType'
|
||||
? def.type.name.value
|
||||
: def?.type?.type?.name?.value;
|
||||
const checkContainFile = type => {
|
||||
if (schema.getType(type)?.name === 'Upload') return true;
|
||||
const typeDef = schema.getType(type);
|
||||
|
||||
@@ -612,6 +612,7 @@ export const submitAudioTranscriptionMutation = {
|
||||
status
|
||||
}
|
||||
}`,
|
||||
file: true,
|
||||
};
|
||||
|
||||
export const claimAudioTranscriptionMutation = {
|
||||
|
||||
Reference in New Issue
Block a user