Skip to content

Commit

Permalink
fix(avatar): fix path to default user avatarr
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Aug 18, 2017
1 parent db34b0e commit d7b4380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/db/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function create(): Promise<null> {
t.string('fullname').notNullable();
t.string('password').notNullable();
t.boolean('admin').notNullable().defaultTo(false);
t.string('avatar').notNullable().defaultTo('avatars/user.png');
t.string('avatar').notNullable().defaultTo('/avatars/user.svg');
t.timestamps();
})
.then(() => schema.createTableIfNotExists('repositories', (t: knex.TableBuilder) => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/app-header/app-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AppHeaderComponent implements OnInit {

ngOnInit() {
this.user = this.authService.getData();
this.user.avatar = this.config.url + '/' + this.user.avatar;
this.user.avatar = this.config.url + this.user.avatar;
}

toggleMenu() {
Expand Down

0 comments on commit d7b4380

Please sign in to comment.