diff --git a/src/modules/admins/admin-operations.resolver.ts b/src/modules/admins/admin-operations.resolver.ts index 65e84a30a..3de04445d 100644 --- a/src/modules/admins/admin-operations.resolver.ts +++ b/src/modules/admins/admin-operations.resolver.ts @@ -162,7 +162,7 @@ export class AdminOperationsResolver { } @Mutation(() => Boolean) - // @UseGuards(JwtOrNativeAuthGuard, GqlAdminAuthGuard) + @UseGuards(JwtOrNativeAuthGuard, GqlAdminAuthGuard) async trigerScamUpdate(@Args('input', { type: () => ScamUpdateInput }) input: ScamUpdateInput): Promise { this.scamUpdatePublisherService.publish({ collectionIdentifier: input.collectionIdentifier, type: input.type }); return true; diff --git a/src/modules/rabbitmq/elastic-updates/scam-trigger/scam-update-events.consumer.ts b/src/modules/rabbitmq/elastic-updates/scam-trigger/scam-update-events.consumer.ts index 748d8411a..cf4d84e9f 100644 --- a/src/modules/rabbitmq/elastic-updates/scam-trigger/scam-update-events.consumer.ts +++ b/src/modules/rabbitmq/elastic-updates/scam-trigger/scam-update-events.consumer.ts @@ -14,7 +14,6 @@ export class ScamUpdateEventsConsumer { exchange: rabbitExchanges.SCAM_UPDATE, }) async consumeScamEvents(event: MarkScamCollectionEvent) { - console.log({ event }) if (event.type === ScamInputEnum.allow) { await this.collectionScamService.manuallyClearCollectionScamInfo(event.collectionIdentifier) } else {