Permalink
Browse files

fix(avatar): fix path to default user avatarr

  • Loading branch information...
jkuri committed Aug 17, 2017
1 parent db34b0e commit d7b438025a374fa4d2585974eb9a7b25c0b3618a
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/api/db/migrations.ts
  2. +1 −1 src/app/components/app-header/app-header.component.ts
@@ -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) => {
@@ -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() {

0 comments on commit d7b4380

Please sign in to comment.