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[] = [];
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 => {
ret.push(alias + '."' + value + subValue[0].toUpperCase() + subValue.substr(1).toLowerCase() + '"');
});

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

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

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

Loading…
Cancel
Save