chore: format
This commit is contained in:
parent
e8f178458f
commit
70dd49740e
1 changed files with 13 additions and 15 deletions
|
@ -96,9 +96,7 @@ function convertNoteEditsToNotes(noteEdits: NoteEdit[]) {
|
||||||
emojis: note.value.emojis,
|
emojis: note.value.emojis,
|
||||||
};
|
};
|
||||||
|
|
||||||
return [now]
|
return [now].concat(noteEdits).map((noteEdit: NoteEdit, index, arr): Note => {
|
||||||
.concat(noteEdits)
|
|
||||||
.map((noteEdit: NoteEdit, index, arr): Note => {
|
|
||||||
return Object.assign({}, note.value, {
|
return Object.assign({}, note.value, {
|
||||||
historyId: noteEdit.id,
|
historyId: noteEdit.id,
|
||||||
// Conversion from updatedAt to createdAt
|
// Conversion from updatedAt to createdAt
|
||||||
|
|
Loading…
Reference in a new issue