Skip to content

Commit

Permalink
refactor(example-todo): update files to match output from lb4 model
Browse files Browse the repository at this point in the history
  • Loading branch information
virkt25 committed Jul 10, 2018
1 parent 6da3bb5 commit da0c881
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions examples/todo/src/models/todo.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

import {Entity, property, model} from '@loopback/repository';
import {Entity, model, property} from '@loopback/repository';

@model()
export class Todo extends Entity {
Expand All @@ -27,22 +27,18 @@ export class Todo extends Entity {
@property({
type: 'boolean',
})
isComplete: boolean;
isComplete?: boolean;

@property({
type: 'string',
})
remindAtAddress: string; // address,city,zipcode
remindAtAddress?: string; // address,city,zipcode

// TODO(bajtos) Use LoopBack's GeoPoint type here
@property({
type: 'string',
})
remindAtGeo: string; // latitude,longitude

getId() {
return this.id;
}
remindAtGeo?: string; // latitude,longitude

constructor(data?: Partial<Todo>) {
super(data);
Expand Down

0 comments on commit da0c881

Please sign in to comment.