Skip to content

Commit 7499862

Browse files
committed
Minor bug fix
1 parent db90c1e commit 7499862

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

client/src/app/shelters/add-shelter/add-shelter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import * as $ from 'jquery';
1414
})
1515
export class AddShelterComponent implements AfterViewInit {
1616
mapboxAccessToken = environment.mapboxAccessToken;
17-
shelter = new Shelter('', '', '', '', '', '', '', null, null, null, false, null, null, null, null, '');
17+
shelter = new Shelter('', '', '', '', '', '', '', null, null, null, false, null, null, null, null);
1818

1919
shelterDetailsTab = 0;
2020

client/src/app/shelters/shelter-card/shelter-card.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<p class="subtitle">
1414
{{ shelter.contact }}
1515
</p>
16-
<a routerLink="{{shelter._id}}" class="button is-outlined is-info">Click here for more info</a>
16+
<a routerLink="{{shelter['_id']}}" class="button is-outlined is-info">Click here for more info</a>
1717
</div>
1818
<div class="column is-4">
1919
<div class="content">

client/src/app/shelters/shelter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export class Shelter {
1414
public lastUpdated: Date,
1515
public family: string,
1616
public familyAgeMin: number,
17-
public familyAgeMax: number,
18-
public _id: string
17+
public familyAgeMax: number
1918
) { }
2019
}

server/api/shelters/routes/addShelter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ module.exports = {
77
options: {
88
handler: async (request, h) => {
99
let shelter = new Shelter(request.payload)
10-
1110
shelter.user = request.auth.credentials.id
1211

1312
await shelter.save()
14-
13+
1514
return shelter
1615
},
1716
auth: {

0 commit comments

Comments
 (0)