File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
angular/projects/common/src/app/utils Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,7 @@ export class Picklists {
700
700
} ,
701
701
'Oil and Gas Activities Act' : {
702
702
'63' : {
703
- description : 'Penalty for failure to compluy with the Act or associated regulations'
703
+ description : 'Penalty for failure to comply with the Act or associated regulations'
704
704
}
705
705
}
706
706
} ,
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ var dbm
4
+ var type
5
+ var seed
6
+
7
+ const badString = "Penalty for failure to compluy with the Act or associated regulations"
8
+ const goodString = "Penalty for failure to comply with the Act or associated regulations"
9
+
10
+ /**
11
+ * We receive the dbmigrate dependency from dbmigrate initially.
12
+ * This enables us to not have to rely on NODE_PATH.
13
+ */
14
+ exports . setup = function ( options , seedLink ) {
15
+ dbm = options . dbmigrate
16
+ type = dbm . dataType
17
+ seed = seedLink
18
+ } ;
19
+
20
+ exports . up = async function ( db ) {
21
+ const mClient = await db . connection . connect ( db . connectionString , { native_parser : true } )
22
+ try {
23
+ const nrptiCollection = await mClient . collection ( 'nrpti' )
24
+ await nrptiCollection . updateMany ( { offence : badString } , { $set : { offence : goodString } } )
25
+ mClient . close ( )
26
+ } catch ( e ) {
27
+ console . log ( 'Error' , e )
28
+ mClient . close ( )
29
+ }
30
+ }
31
+
32
+ exports . down = function ( db ) {
33
+ return null
34
+ }
35
+
36
+ exports . _meta = {
37
+ "version" : 1
38
+ }
You can’t perform that action at this time.
0 commit comments