utils.ts: bugs

pull/14/head
leonnicolas 4 years ago
parent 85976704fb
commit 57e369528e
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -173,7 +173,7 @@ export class ActionLogger {
} }
const ret :string[] = []; const ret :string[] = [];
Object.keys(updates).forEach(value => { Object.keys(updates).forEach(value => {
if (typeof updates[value] === 'object' && !Array.isArray(updates[value])) { if (typeof updates[value] === 'object' && !Array.isArray(updates[value]) && updates[value]) {
Object.keys(updates[value]).forEach(subValue => { Object.keys(updates[value]).forEach(subValue => {
ret.push(alias + '."' + value + subValue[0].toUpperCase() + subValue.substr(1).toLowerCase() + '"'); ret.push(alias + '."' + value + subValue[0].toUpperCase() + subValue.substr(1).toLowerCase() + '"');
}); });

@ -32,12 +32,12 @@ export enum Group {
} }
export enum StickerBikeNameState { export enum StickerBikeNameState {
OK, OK = 'OK',
IMPROVE, IMPROVE = 'IMPROVE',
PRODUCED, PRODUCED = 'PRODUCED',
NONEED, NONEED = 'NONEED',
MISSING, MISSING = 'MISSING',
UNKNOWN UNKNOWN = 'UNKNOWN'
} }
export interface Lockable { export interface Lockable {

@ -43,5 +43,5 @@ export class InsuranceData {
@Column({ @Column({
nullable: true nullable: true
}) })
note: string; notes: string;
} }

@ -1,7 +1,7 @@
/* eslint no-unused-vars: "off" */ /* eslint no-unused-vars: "off" */
import { Column } from 'typeorm'; import { Column } from 'typeorm';
export enum OrganizationArea { export enum OrganisationArea {
IB = 'IB', IB = 'IB',
ZB = 'ZB' ZB = 'ZB'
} }
@ -11,8 +11,8 @@ export class Taxes {
@Column({ @Column({
type: 'enum', type: 'enum',
enum: OrganizationArea, enum: OrganisationArea,
nullable: true nullable: true
}) })
organizationArea: OrganizationArea; organisationArea: OrganisationArea;
} }

Loading…
Cancel
Save