Commit a66914d8 by Tuukka Kivilahti

removed testing changes and fixed linting

1 parent a4fefec4
......@@ -12,18 +12,10 @@ export class VipProduct {
fragment vipProductPrimitives on VipProduct {
id
name
quantity
}
`;
/*
static fragmentsZ = gql`
fragment vipProductPrimitives on VipProduct {
id
name
notes
quantity
}
`;*/
`;
id: number;
name: string;
......
......@@ -69,7 +69,7 @@ export class ViplistService {
* get vips
*/
public get(): Observable<Array<Vip>> {
return this.apollo.watchQuery<VipsQueryRoot>({query: Q_VIPS_N_DATA}).valueChanges.pipe(map(x =>{ console.log(x.data.vips); return x.data.vips}));
return this.apollo.watchQuery<VipsQueryRoot>({query: Q_VIPS_N_DATA}).valueChanges.pipe(map(x => { console.log(x.data.vips); return x.data.vips; }));
// return this.apollo.query<vipsQueryRoot>({query: Q_VIPS_N_DATA}).pipe(map(x => x.data.vips));
}
......
......@@ -15,16 +15,8 @@ export enum UserGender {
export class User {
static fragments = gql`
fragment userPrimitives on User {
address
birthday
email
}
`;
/*
static fragmentsZZ = gql`
static fragments = gql`
fragment userPrimitives on User {
address
allergiesFreetext
......@@ -45,7 +37,6 @@ export class User {
`;
*/
nick: string;
login: string;
......
......@@ -29,7 +29,7 @@
"label-position": true,
"max-line-length": [
true,
140
200
],
"member-access": false,
"member-ordering": [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!