Enqueue Oracle Advance Queue using NodeJs

const oracledb = require('oracledb');
const dbConfig = require('./dbconfig.js');

const queueName = "QUEUENAME";
async function enq() {
    let connection;
    try {
        connection = await oracledb.getConnection(dbConfig);
        const queue = await connection.getQueue(queueName,{ payloadType: "SYS.AQ$_JMS_TEXT_MESSAGE" });
        queue.enqOptions.visibility = oracledb.AQ_VISIBILITY_IMMEDIATE; 
        console.log('Enqueuing messages');
        const message =  "Hello IT! Have you tried to turn it off and on again?";
        await queue.enqOne(message);
        // const messages = [
        //     "Message 1",
        //     "Message 2",
        //     {
        //         expiration: 5,
        //         payload: "Message 3"
        //     },
        //     "Message 4"
        // ];
        // await queue.enqMany(messages);  
    } catch (err) {
        console.error(err);
    } finally {
        if (connection) {
            try {
                await connection.close();
            } catch (err) {
                console.error(err);
            }
        }
    }
}
enq();

dbconfig.js

module.exports = {
  user: 'UserName',
  password: 'PassWord',
  connectString:  "(
    DESCRIPTION =(
      ADDRESS_LIST = (
        ADDRESS = (PROTOCOL = TCP)(HOST = {hostname})(PORT = {port})
      )
    )
    (CONNECT_DATA = (SERVICE_NAME = {ServiceName})))",
    externalAuth: process.env.NODE_ORACLEDB_EXTERNALAUTH ? true : false
};