fix: ensure we encapsulate registration publish in registration field

This commit is contained in:
Alexis Tyler
2021-04-22 06:54:13 +09:30
parent 503df44ee4
commit 9719587bca

View File

@@ -51,11 +51,13 @@ export const keyFile = () => {
// Publish event
// This will end up going to the graphql endpoint
await pubsub.publish('registration', {
guid: varState.data.regGuid,
type: varState.data.regTy,
keyFile: {
location: fullPath,
contents: parsedFile
registration: {
guid: varState.data.regGuid,
type: varState.data.regTy,
keyFile: {
location: fullPath,
contents: parsedFile
}
}
}).catch(error => {
coreLogger.error('Failed publishing to "registration" with %s', error);