Skip to content

Commit

Permalink
Merge pull request #97 from AplinkosMinisterija/infostatyba-added-url
Browse files Browse the repository at this point in the history
Added url to project
  • Loading branch information
ambrazasp authored Jun 11, 2024
2 parents df7d3b6 + ac3cd84 commit 63f861c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/datagov.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ export default class DatagovService extends moleculer.Service {
externalId: entry._id,
};

if (entry.uuid) {
event.url = `https://infostatyba.planuojustatau.lt/eInfostatyba-external/projectObject/projectObjectMain?uuid=${entry.uuid}`;
}

stats.valid.total++;

const existingEvent: Event = await ctx.call('events.findOne', {
Expand Down

0 comments on commit 63f861c

Please sign in to comment.