Skip to content

Commit

Permalink
refactor: prettier on save
Browse files Browse the repository at this point in the history
  • Loading branch information
uatisdeproblem committed Mar 24, 2024
1 parent 2844c40 commit ad42379
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions back-end/src/models/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ export class User extends Resource {
this.registrationForm = x.registrationForm ?? {};
if (x.registrationAt) this.registrationAt = this.clean(x.registrationAt, t => new Date(t).toISOString());
if (x.spot) this.spot = new EventSpotAttached(x.spot);
this.socialMedia = {}
if (x.socialMedia?.instagram) this.socialMedia.instagram = this.clean(x.socialMedia.instagram, String)
if (x.socialMedia?.linkedIn) this.socialMedia.linkedIn = this.clean(x.socialMedia.linkedIn, String)
if (x.socialMedia?.twitter) this.socialMedia.twitter = this.clean(x.socialMedia.twitter, String)
this.socialMedia = {};
if (x.socialMedia?.instagram) this.socialMedia.instagram = this.clean(x.socialMedia.instagram, String);
if (x.socialMedia?.linkedIn) this.socialMedia.linkedIn = this.clean(x.socialMedia.linkedIn, String);
if (x.socialMedia?.twitter) this.socialMedia.twitter = this.clean(x.socialMedia.twitter, String);
}

safeLoad(newData: any, safeData: any): void {
Expand Down Expand Up @@ -250,4 +250,4 @@ export interface SocialMedia {
instagram?: string;
linkedIn?: string;
twitter?: string;
}
}

0 comments on commit ad42379

Please sign in to comment.