Skip to content

Commit

Permalink
Upgrade Common
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihturker committed Mar 12, 2022
1 parent b319aad commit 6e50cf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions app/consumer/file-queue.consumer.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { FileActionType } from '@open-template-hub/common';
import {
ContextArgs,
FileActionType,
QueueConsumer,
} from '@open-template-hub/common';

export class FileQueueConsumer {
export class FileQueueConsumer implements QueueConsumer {
private channel: any;
private ctxArgs: ContextArgs = {} as ContextArgs;

constructor() {}

init = (channel: string) => {
init = (channel: string, ctxArgs: ContextArgs) => {
this.channel = channel;
this.ctxArgs = ctxArgs;
return this;
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@google-cloud/storage": "^5.16.1",
"@open-template-hub/common": "^3.4.10",
"@open-template-hub/common": "^3.4.11",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/uuid": "^8.3.4",
Expand Down

0 comments on commit 6e50cf3

Please sign in to comment.