Skip to content

Commit 05cce89

Browse files
committed
small optimize
1 parent e117aa7 commit 05cce89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/core/handler/ddoHandler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,12 @@ export class ValidateDDOHandler extends CommandHandler {
848848
status: { httpStatus: 400, error: `Validation error: ${validation[1]}` }
849849
}
850850
}
851-
const signature = await getValidationSignature(JSON.stringify(task.ddo))
852851
return {
853-
stream: shouldSign ? Readable.from(JSON.stringify(signature)) : null,
852+
stream: shouldSign
853+
? Readable.from(
854+
JSON.stringify(await getValidationSignature(JSON.stringify(task.ddo)))
855+
)
856+
: null,
854857
status: { httpStatus: 200 }
855858
}
856859
} catch (error) {

0 commit comments

Comments
 (0)