We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d44f22 commit 73031f6Copy full SHA for 73031f6
src/PgIpLock.ts
@@ -113,8 +113,12 @@ export class PgIpLock implements AnyLock {
113
*/
114
public async init(): Promise<void> {
115
if (!await this.schemaExists()) {
116
- await this.createSchema();
117
- await Promise.all([this.createLock(), this.createDeadlockCheck()]);
+ try {
+ await this.createSchema();
118
+ await Promise.all([this.createLock(), this.createDeadlockCheck()]);
119
+ } catch (e) {
120
+ /*ignore*/
121
+ }
122
}
123
124
if (this.notifyHandler && !this.uniqueKey) {
0 commit comments