Skip to content

Commit

Permalink
fix: outdated api
Browse files Browse the repository at this point in the history
  • Loading branch information
alerdenisov committed Oct 26, 2023
1 parent 0dcae38 commit c3f5013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/discord/discord.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class DiscordService {
const entityManager = queryRunner.manager;

try {
const user = await this.userService.createUser({ invitedBy: dto.invitedBy }, entityManager);
const user = await this.userService.createUser({}, entityManager);
const userDiscord = await this.discordUsers.createOrUpdateOne({ ...dto, userId: user.id }, entityManager);

await queryRunner.commitTransaction();
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/twitter/twitter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class TwitterService {
const entityManager = queryRunner.manager;

try {
const user = await this.userService.createUser({ invitedBy: dto.invitedBy }, entityManager);
const user = await this.userService.createUser({}, entityManager);
const userTwitter = await this.twitterUsers.createOrUpdateOne({ ...dto, userId: user.id }, entityManager);

await queryRunner.commitTransaction();
Expand Down

0 comments on commit c3f5013

Please sign in to comment.