Skip to content

Commit e3d4614

Browse files
authored
Merge pull request #319 from janfh/fix/libl
Remove duplicates from library list
2 parents f8b99fe + 6d6dee5 commit e3d4614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/connection/manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SQLJobManager {
3030
const config = instance.getConfig();
3131

3232
const newJob = predefinedJob || (new OldSQLJob({
33-
libraries: [config.currentLibrary, ...config.libraryList],
33+
libraries: [config.currentLibrary, ...config.libraryList.filter((item) => item != config.currentLibrary)],
3434
naming: `system`,
3535
"full open": false,
3636
"transaction isolation": "none",
@@ -161,4 +161,4 @@ export class SQLJobManager {
161161
static getSelfDefault(): SelfValue {
162162
return Configuration.get<SelfValue>(`jobSelfDefault`) || `*NONE`;
163163
}
164-
}
164+
}

0 commit comments

Comments
 (0)