Skip to content

Commit

Permalink
fix. conflict error executing migrations because shortName is required
Browse files Browse the repository at this point in the history
- In 2.40 shortName is required in post constant endpoint
  • Loading branch information
xurxodev committed Apr 16, 2024
1 parent df5362c commit e9c3dae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/storage/StorageConstantClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class StorageConstantClient extends StorageClient {
id,
code: formatKey(key),
name: formatName(key),
shortName: formatName(key),
description: JSON.stringify(value, null, 2),
value: 1,
...sharing,
Expand Down Expand Up @@ -184,6 +185,7 @@ type Constant = ObjectSharing & {
id: string;
code: string;
name: string;
shortName: string;
description: string;
lastUpdated: Date;
};
Expand All @@ -192,6 +194,7 @@ const apiFields = {
id: true,
code: true,
name: true,
shortName: true,
description: true,
user: { id: true, name: true },
created: true,
Expand Down

0 comments on commit e9c3dae

Please sign in to comment.