Services: Use replaceNullWithEmptyString

Add the helper method replaceNullWithEmptyString to the services, where it is needed.

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-04-24 21:16:06 +02:00 committed by David Mehren
parent 4eb9f0dc11
commit 6a4e0d96cf
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 3 additions and 3 deletions

View file

@ -352,9 +352,9 @@ export class NotesService {
// TODO: Convert DB UUID to base64
id: note.id,
alias: note.alias,
title: note.title,
title: note.title ?? '',
createTime: (await this.getFirstRevision(note)).createdAt,
description: note.description,
description: note.description ?? '',
editedBy: note.authorColors.map(
(authorColor) => authorColor.user.userName,
),