Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslavtriev authored May 29, 2024
1 parent d3c76e2 commit 95f78e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mysql/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createConnection } from 'mysql2/promise'

Check failure on line 1 in src/Mysql/index.ts

View workflow job for this annotation

GitHub Actions / Build

Cannot find module 'baileys' or its corresponding type declarations.
import { proto } from '@whiskeysockets/baileys'
import { proto } from 'baileys'

Check failure on line 2 in src/Mysql/index.ts

View workflow job for this annotation

GitHub Actions / update-nightly

Cannot find module 'baileys' or its corresponding type declarations.
import { BufferJSON, initAuthCreds } from '../Utils'
import { MySQLConfig, sqlData, sqlConnection, AuthenticationCreds, AuthenticationState } from '../Types'

Expand Down Expand Up @@ -129,7 +129,7 @@ export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: Au
state: {
creds,
keys: {
get: async (type: string, ids: Array<string>) => {
get: async (type, ids) => {
const data = { }
for(const id of ids){
let value = await readData(`${type}-${id}`)
Expand All @@ -140,7 +140,7 @@ export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: Au
}
return data
},
set: async (data: Array<object>) => {
set: async (data) => {
for(const category in data) {
for(const id in data[category]) {
const value = data[category][id];
Expand Down

0 comments on commit 95f78e4

Please sign in to comment.