@wmfs/tymly-pg-plugin
Advanced tools
Comparing version
@@ -11,3 +11,3 @@ 'use strict' | ||
class AuditService { | ||
boot (options, callback) { | ||
async boot (options) { | ||
this.models = options.blueprintComponents.models || {} | ||
@@ -26,5 +26,3 @@ this.client = options.bootedServices.storage.client | ||
this.updateTriggers(options.messages) | ||
.then(() => callback(null)) | ||
.catch(err => callback(err)) | ||
await this.updateTriggers(options.messages) | ||
} // boot | ||
@@ -31,0 +29,0 @@ |
@@ -19,3 +19,3 @@ 'use strict' | ||
class PostgresqlStorageService { | ||
boot (options, callback) { | ||
async boot (options) { | ||
this.storageName = 'postgresql' | ||
@@ -34,9 +34,7 @@ | ||
this._installExtension() | ||
.then(() => this._createModels(options.messages)) | ||
.then(() => this._insertMultipleSeedData(options.blueprintComponents.seedData, options.messages)) | ||
.then(() => this._runScripts(options.blueprintComponents.pgScripts, options.messages)) | ||
.then(() => this._generateSequences(options.blueprintComponents.sequences, options.messages)) | ||
.then(() => callback()) | ||
.catch(err => callback(err)) | ||
await this._installExtension() | ||
await this._createModels(options.messages) | ||
await this._insertMultipleSeedData(options.blueprintComponents.seedData, options.messages) | ||
await this._runScripts(options.blueprintComponents.pgScripts, options.messages) | ||
await this._generateSequences(options.blueprintComponents.sequences, options.messages) | ||
} // boot | ||
@@ -43,0 +41,0 @@ |
{ | ||
"name": "@wmfs/tymly-pg-plugin", | ||
"version": "1.195.3", | ||
"version": "1.195.4", | ||
"description": "Replace Tymly's out-the-box memory storage with PostgreSQL", | ||
@@ -42,3 +42,3 @@ "author": "West Midlands Fire Service", | ||
"conventional-changelog-metahub": "4.0.1", | ||
"cz-conventional-changelog": "3.1.0", | ||
"cz-conventional-changelog": "3.2.0", | ||
"mocha": "7.1.2", | ||
@@ -52,3 +52,3 @@ "nyc": "15.0.1", | ||
"@semantic-release/exec": "5.0.0", | ||
"@wmfs/tymly": "1.137.0" | ||
"@wmfs/tymly": "1.137.2" | ||
}, | ||
@@ -55,0 +55,0 @@ "scripts": { |
{ | ||
"name": "pg", | ||
"version": "1.195.3", | ||
"version": "1.195.4", | ||
"label": "PG", | ||
@@ -5,0 +5,0 @@ "author": "Tim Needham", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
201480
0.33%3359
-0.12%