Skip to content

Commit

Permalink
chore: Format sources
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Jan 12, 2019
1 parent 3f4c352 commit 1c35df1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: node ./server.js
9 changes: 8 additions & 1 deletion libs/rucken/core/src/lib/base/base-entity-list.component.ts
@@ -1,6 +1,13 @@
import { EventEmitter, Input, isDevMode, Output } from '@angular/core';
import { BindObservable } from 'bind-observable';
import { IFactoryModel, IMockProviderOptions, IModel, IPaginationMeta, IRestProviderOptions, Repository } from 'ngx-repository';
import {
IFactoryModel,
IMockProviderOptions,
IModel,
IPaginationMeta,
IRestProviderOptions,
Repository
} from 'ngx-repository';
import { forkJoin, Observable } from 'rxjs';
import { first } from 'rxjs/operators';
import { IModalRef } from '../modules/modals/modal-ref.interface';
Expand Down
6 changes: 3 additions & 3 deletions libs/rucken/core/src/lib/utils/custom-transforms.ts
Expand Up @@ -19,18 +19,18 @@ export function transformDateToString(value: Date) {
return value;
}
export function serializeModel<T>(object: T) {
return function () {
return function() {
return object;
};
}

export function serializeIdToObject<T>(object: T) {
return function (value: number) {
return function(value: number) {
return plainToClass(object as any, { id: value });
};
}
export function serializeObjectToId<T>(object: T) {
return function (value: T) {
return function(value: T) {
return value ? (value as any).id : undefined;
};
}

0 comments on commit 1c35df1

Please sign in to comment.