Commit 83dfa854 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Rename function.

parent 3b034287
import {
CodeTypeOrgane,
dateToLocalIso8601String,
existingDateToJson,
localIso8601StringFromDate,
patchedDateToJson,
TypeMandat,
ActeLegislatif,
......@@ -283,11 +283,11 @@ async function main() {
)
for (const reunion of Object.values(reunionByUid)) {
const jourDebut = dateToLocalIso8601String(reunion.timestampDebut)
const jourDebut = localIso8601StringFromDate(reunion.timestampDebut)
const jourFin =
reunion.timestampFin === undefined
? jourDebut
: dateToLocalIso8601String(reunion.timestampFin)
: localIso8601StringFromDate(reunion.timestampFin)
await db.none(
`
INSERT INTO reunions (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment