From 2f65b054512b44629b881ccd1a21c4bde07bb308 Mon Sep 17 00:00:00 2001 From: Bob <115008575+bobslavtriev@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:32:20 -0300 Subject: [PATCH] Update index.ts --- src/Mysql/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mysql/index.ts b/src/Mysql/index.ts index aa0c6d4..01db8df 100644 --- a/src/Mysql/index.ts +++ b/src/Mysql/index.ts @@ -56,7 +56,7 @@ async function connection(config: MySQLConfig, force: boolean = false){ return conn } -export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: AuthenticationState, saveCreds: () => Promise, clear: () => Promise, removeCreds: () => Promise }> => { +export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: AuthenticationState, saveCreds: () => Promise, clear: () => Promise, removeCreds: () => Promise, query: (sql: string, values: string[]) => Promise }> => { const sqlConn = await connection(config) const tableName = config.tableName || 'auth' @@ -143,7 +143,7 @@ export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: Au removeCreds: async () => { await removeAll() }, - query: async (sql, values) => { + query: async (sql: string, values: string[]) => { return await query(sql, values) } }