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

Rename function.

parent 3b034287
import { import {
CodeTypeOrgane, CodeTypeOrgane,
dateToLocalIso8601String,
existingDateToJson, existingDateToJson,
localIso8601StringFromDate,
patchedDateToJson, patchedDateToJson,
TypeMandat, TypeMandat,
ActeLegislatif, ActeLegislatif,
...@@ -283,11 +283,11 @@ async function main() { ...@@ -283,11 +283,11 @@ async function main() {
) )
for (const reunion of Object.values(reunionByUid)) { for (const reunion of Object.values(reunionByUid)) {
const jourDebut = dateToLocalIso8601String(reunion.timestampDebut) const jourDebut = localIso8601StringFromDate(reunion.timestampDebut)
const jourFin = const jourFin =
reunion.timestampFin === undefined reunion.timestampFin === undefined
? jourDebut ? jourDebut
: dateToLocalIso8601String(reunion.timestampFin) : localIso8601StringFromDate(reunion.timestampFin)
await db.none( await db.none(
` `
INSERT INTO reunions ( 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