Skip to content

Commit

Permalink
commit updated script #3335
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Dec 17, 2024
1 parent 2b7107e commit b6bb501
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
load('../../utils/audit.js');
load('../../../utils/uuid.js');
load('../../../utils/audit.js');
let adminUserId = '<tbd>'
const invoiceScoreId = '7u24188f-852h-3bex-c49g-60a2dsaa8723';
let scores = [

{
scoreId: UUID.generate(),
scoreId: invoiceScoreId,
entityTypes: undefined,
tags: [],
displayType: '',
Expand Down Expand Up @@ -33,7 +36,7 @@ let scores = [
}
,
{
_id: ObjectId('664c25abb61a6108c799ea73'),
_id: ObjectId('664c25abb61a6108c799bb66'),
scoreId: UUID.generate(),
label: 'Number of hours conducting research and development',
status: 'active',
Expand All @@ -58,7 +61,13 @@ let scores = [
]
},
dateCreated: ISODate('2024-12-17T04:40:11.160Z'),
lastUpdated: ISODate('2024-12-17T04:40:11.160Z')
lastUpdated: ISODate('2024-12-17T04:40:11.160Z'),
relatedScores: [
{
description: 'Invoiced by',
scoreId: invoiceScoreId
}
]
}];


Expand All @@ -69,4 +78,7 @@ for (let i=0; i<scores.length; i+=2) {
audit(invoiced, invoiced.scoreId, 'au.org.ala.ecodata.Score', adminUserId, null, 'Insert');
db.score.insertOne(invoiced);

audit(delivered, delivered.scoreId, 'au.org.ala.ecodata.Score', adminUserId, null, 'Insert');
db.score.insertOne(delivered);

}

0 comments on commit b6bb501

Please sign in to comment.