Files
website/layers/diary/server/utils/note.ts
T
2026-09-30 19:15:57 +02:00

14 lines
229 B
TypeScript

export interface NoteRow {
id: number
Datum: string | null
Notes: string | null
}
export function toNote(row: NoteRow): Note {
return {
id: row.id,
date: row.Datum ?? '',
text: (row.Notes ?? '').trim()
}
}