Skip to content

Commit

Permalink
merge stashed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akmatchev committed Apr 15, 2024
1 parent 31bebf2 commit 59f8f1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/models/UserModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ export class UserModel {
@Column({ type: "text", default: "" })
bio: string;

@Column({ unique: true })
referralCode: string;

@Column({ nullable: true })
referredBy: Uuid;

@ManyToMany(() => UserModel, (user) => user.blockers)
@JoinTable({
name: "user_blocking_users",
Expand Down
3 changes: 0 additions & 3 deletions src/repositories/UserRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ export class UserRepository extends AbstractRepository<UserModel> {
}
const adminEmails = process.env.ADMIN_EMAILS?.split(",");
const adminStatus = adminEmails?.includes(email);
// Generate a random uuid referral code
const referralCode = require('uuid').v4();
console.log(referralCode);

const user = new UserModel();
user.username = username;
Expand Down

0 comments on commit 59f8f1c

Please sign in to comment.