Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated #14

Merged
merged 22 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update index.ts
  • Loading branch information
bobslavtriev committed Jun 6, 2024
commit 3588968784c63c287ab5d59fedb74c31dcda405e
2 changes: 1 addition & 1 deletion src/Mysql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const useMySQLAuthState = async(config: MySQLConfig): Promise<{ state: Au

const writeData = async (id: string, value: object) => {
const valueFixed = JSON.stringify(value, BufferJSON.replacer)
await query(`INSERT INTO ${tableName} (session, id, value) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE value = ?`, [id, config.session, valueFixed, valueFixed])
await query(`INSERT INTO ${tableName} (session, id, value) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE value = ?`, [config.session, id, valueFixed, valueFixed])
}

const removeData = async (id: string) => {
Expand Down