Skip to content

Commit 9843d8a

Browse files
committed
debug: check the flow
1 parent 5535ff2 commit 9843d8a

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/controllers/platform.controller.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,14 @@ import { DatabaseManager, PlatformNames } from '@togethercrew.dev/db';
66

77
import config from '../config';
88
import parentLogger from '../config/logger';
9-
import { discord, generateCodeChallenge, generateCodeVerifier, generateState, google, twitter } from '../config/oAtuh2';
9+
import {
10+
discord, generateCodeChallenge, generateCodeVerifier, generateState, google, twitter
11+
} from '../config/oAtuh2';
1012
import { IAuthAndPlatform, ISessionRequest } from '../interfaces';
1113
import { IAuthRequest } from '../interfaces/Request.interface';
1214
import {
13-
discordServices,
14-
discourseService,
15-
githubService,
16-
googleService,
17-
notionService,
18-
platformService,
19-
tokenService,
20-
twitterService,
21-
userService,
15+
discordServices, discourseService, githubService, googleService, notionService, platformService,
16+
tokenService, twitterService, userService
2217
} from '../services';
2318
import { catchAsync, pick } from '../utils';
2419

@@ -323,7 +318,10 @@ const getPlatform = catchAsync(async function (req: IAuthRequest, res: Response)
323318
res.send(platform);
324319
});
325320
const updatePlatform = catchAsync(async function (req: IAuthAndPlatform, res: Response) {
321+
console.log('Debug1');
326322
platformService.validatePlatformUpdate(req.platform, req.body);
323+
console.log('Debug2');
324+
327325
const platform = await platformService.updatePlatform(req.platform, req.user, req.body);
328326
res.send(platform);
329327
});

0 commit comments

Comments
 (0)