mirror of
https://github.com/unraid/api.git
synced 2026-01-15 13:10:01 -06:00
fix: ensure we encapsulate registration publish in registration field
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user