Skip to content

Commit 95303b2

Browse files
authored
Merge pull request #1157 from gitroomhq/feat/temporal
Moving from BullMQ to Temporal - big change
2 parents 9e0eff7 + 6633fab commit 95303b2

File tree

117 files changed

+2683
-7320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2683
-7320
lines changed

apps/backend/src/api/api.module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ import { MediaController } from '@gitroom/backend/api/routes/media.controller';
1616
import { UploadModule } from '@gitroom/nestjs-libraries/upload/upload.module';
1717
import { BillingController } from '@gitroom/backend/api/routes/billing.controller';
1818
import { NotificationsController } from '@gitroom/backend/api/routes/notifications.controller';
19-
import { MarketplaceController } from '@gitroom/backend/api/routes/marketplace.controller';
20-
import { MessagesController } from '@gitroom/backend/api/routes/messages.controller';
2119
import { OpenaiService } from '@gitroom/nestjs-libraries/openai/openai.service';
2220
import { ExtractContentService } from '@gitroom/nestjs-libraries/openai/extract.content.service';
2321
import { CodesService } from '@gitroom/nestjs-libraries/services/codes.service';
2422
import { CopilotController } from '@gitroom/backend/api/routes/copilot.controller';
25-
import { AgenciesController } from '@gitroom/backend/api/routes/agencies.controller';
2623
import { PublicController } from '@gitroom/backend/api/routes/public.controller';
2724
import { RootController } from '@gitroom/backend/api/routes/root.controller';
2825
import { TrackService } from '@gitroom/nestjs-libraries/track/track.service';
@@ -44,10 +41,7 @@ const authenticatedController = [
4441
MediaController,
4542
BillingController,
4643
NotificationsController,
47-
MarketplaceController,
48-
MessagesController,
4944
CopilotController,
50-
AgenciesController,
5145
WebhookController,
5246
SignatureController,
5347
AutopostController,

apps/backend/src/api/routes/agencies.controller.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

apps/backend/src/api/routes/analytics.controller.ts

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,13 @@
1-
import {
2-
Body,
3-
Controller,
4-
Get,
5-
Inject,
6-
Param,
7-
Post,
8-
Query,
9-
} from '@nestjs/common';
1+
import { Controller, Get, Param, Query } from '@nestjs/common';
102
import { Organization } from '@prisma/client';
113
import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.request';
12-
import { StarsService } from '@gitroom/nestjs-libraries/database/prisma/stars/stars.service';
13-
import dayjs from 'dayjs';
14-
import { StarsListDto } from '@gitroom/nestjs-libraries/dtos/analytics/stars.list.dto';
154
import { ApiTags } from '@nestjs/swagger';
165
import { IntegrationService } from '@gitroom/nestjs-libraries/database/prisma/integrations/integration.service';
17-
import { IntegrationManager } from '@gitroom/nestjs-libraries/integrations/integration.manager';
186

197
@ApiTags('Analytics')
208
@Controller('/analytics')
219
export class AnalyticsController {
22-
constructor(
23-
private _starsService: StarsService,
24-
private _integrationService: IntegrationService
25-
) {}
26-
@Get('/')
27-
async getStars(@GetOrgFromRequest() org: Organization) {
28-
return this._starsService.getStars(org.id);
29-
}
30-
31-
@Get('/trending')
32-
async getTrending() {
33-
const todayTrending = dayjs(dayjs().format('YYYY-MM-DDT12:00:00'));
34-
const last = todayTrending.isAfter(dayjs())
35-
? todayTrending.subtract(1, 'day')
36-
: todayTrending;
37-
const nextTrending = last.add(1, 'day');
38-
39-
return {
40-
last: last.format('YYYY-MM-DD HH:mm:ss'),
41-
predictions: nextTrending.format('YYYY-MM-DD HH:mm:ss'),
42-
};
43-
}
44-
45-
@Post('/stars')
46-
async getStarsFilter(
47-
@GetOrgFromRequest() org: Organization,
48-
@Body() starsFilter: StarsListDto
49-
) {
50-
return {
51-
stars: await this._starsService.getStarsFilter(org.id, starsFilter),
52-
};
53-
}
10+
constructor(private _integrationService: IntegrationService) {}
5411

5512
@Get('/:integration')
5613
async getIntegration(

apps/backend/src/api/routes/marketplace.controller.ts

Lines changed: 0 additions & 242 deletions
This file was deleted.

0 commit comments

Comments
 (0)