Skip to content

Commit

Permalink
fix: error in release serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffroy Empain committed Mar 19, 2021
1 parent e945730 commit 9969752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entities/releases/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface Release {
name: string;
date: Date;
branches: string[];
forms: Form[];
forms?: Form[];
}

export const Releases = () => AppDb.db.collection<Release>('releases');
2 changes: 1 addition & 1 deletion src/entities/releases/serialize-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export function serializeRelease(release: Release) {
name: release.name,
siteId: release.siteId,
branches: release.branches || [],
forms: release.forms.map(serializeForm) || [],
forms: release.forms?.map(serializeForm) || [],
};
}

0 comments on commit 9969752

Please sign in to comment.