Skip to content

Commit

Permalink
fix: add typePrefix to subscriptions' types
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Jun 29, 2022
1 parent ad9afe6 commit ae6cd53
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/subscriptions/onJobActive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobActiveFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobActivePayload',
name: `${opts.typePrefix}OnJobActivePayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobCompleted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobCompletedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobCompletedPayload',
name: `${opts.typePrefix}OnJobCompletedPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobDelayed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobDelayedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobDelayedPayload',
name: `${opts.typePrefix}OnJobDelayedPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobFailed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobFailedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobFailedPayload',
name: `${opts.typePrefix}OnJobFailedPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobProgress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobProgressFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobProgressPayload',
name: `${opts.typePrefix}OnJobProgressPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobRemoved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createOnJobRemovedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobRemovedPayload',
name: `${opts.typePrefix}OnJobRemovedPayload`,
fields: {
queue: getQueueTC(sc, opts).NonNull,
jobId: 'String!',
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobStalled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobStalledFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobStalledPayload',
name: `${opts.typePrefix}OnJobStalledPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onJobWaiting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function createOnJobWaitingFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnJobWaitingPayload',
name: `${opts.typePrefix}OnJobWaitingPayload`,
fields: {
job: getJobTC(sc, opts),
queue: getQueueTC(sc, opts).NonNull,
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onQueuePaused.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createOnQueuePausedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnQueuePausedPayload',
name: `${opts.typePrefix}OnQueuePausedPayload`,
fields: {
queue: getQueueTC(sc, opts).NonNull,
queueName: 'String!',
Expand Down
2 changes: 1 addition & 1 deletion src/subscriptions/onQueueResumed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function createOnQueueResumedFC(
): ObjectTypeComposerFieldConfigAsObjectDefinition<any, any> {
return {
type: sc.createObjectTC({
name: 'OnQueueResumedPayload',
name: `${opts.typePrefix}OnQueueResumedPayload`,
fields: {
queue: getQueueTC(sc, opts).NonNull,
queueName: 'String!',
Expand Down
2 changes: 1 addition & 1 deletion src/types/queue/Queue.jobsMemoryUsageAvg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function createJobsMemoryUsageAvgFC(
args: {
keySetName: {
type: sc.createEnumTC({
name: 'keySetNamesEnum',
name: `${opts?.typePrefix}KeySetNamesEnum`,
values: {
COMPLETED: { value: 'completed' },
FAILED: { value: 'failed' },
Expand Down

0 comments on commit ae6cd53

Please sign in to comment.