Skip to content

Commit

Permalink
Merge pull request #58 from AplinkosMinisterija/infostatyba-wrong-fie…
Browse files Browse the repository at this point in the history
…ld-fix

Change `iraso_data` to `dokumento_reg_data`
  • Loading branch information
ambrazasp committed Mar 27, 2024
2 parents 604d0f0 + 69834c8 commit f73feaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/datagov.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class DatagovService extends moleculer.Service {
'sort(_id)',
`(${dokTipasQuery})`,
'dok_statusas="Galiojantis"',
'iraso_data!=null',
'dokumento_reg_data!=null',
'taskas_wgs!=null',
'taskas_lks!=null',
]
Expand Down Expand Up @@ -95,7 +95,7 @@ export default class DatagovService extends moleculer.Service {
skipParamString = `&_id>'${entry._id}'`;
stats.total++;

if (!entry.iraso_data) {
if (!entry.dokumento_reg_data) {
stats.invalid.total++;
stats.invalid.no_date++;
continue;
Expand Down Expand Up @@ -125,7 +125,7 @@ export default class DatagovService extends moleculer.Service {
`**Statybos rūšis:** ${entry.statybos_rusis || '-'}`,
`**Statinio pavadinimas:** ${entry.statinio_pavadinimas || '-'}`,
].join('\n\n'),
startAt: new Date(entry.iraso_data),
startAt: new Date(entry.dokumento_reg_data),
geom,
app: appIdByDokType[entry.dok_tipo_kodas],
isFullDay: true,
Expand Down

0 comments on commit f73feaa

Please sign in to comment.