Skip to content

Commit e99dc63

Browse files
committed
pubsub create channel if not exists fails without space
1 parent f5d3fa2 commit e99dc63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/pubsub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class PubSub {
6666
public async createChannel(name: string, failIfExists: boolean = true): Promise<any> {
6767
let notExistsCommand = ''
6868
if (!failIfExists) {
69-
notExistsCommand = 'IF NOT EXISTS'
69+
notExistsCommand = ' IF NOT EXISTS'
7070
}
7171

7272
return this.connection.sql(`CREATE CHANNEL ?${notExistsCommand};`, name)

0 commit comments

Comments
 (0)