diff --git a/bots/discord/src/classes/Database.ts b/bots/discord/src/classes/Database.ts index d0b7b54..7da2bb0 100644 --- a/bots/discord/src/classes/Database.ts +++ b/bots/discord/src/classes/Database.ts @@ -52,7 +52,7 @@ export class BasicDatabase> { } #encodeValue(value: unknown) { - if (typeof value === 'string') return `'${value}'` + if (typeof value === 'string') return `'${value.replaceAll("'", "\\'")}'` if (typeof value === 'number') return value if (typeof value === 'boolean') return value ? 1 : 0 if (value === null) return 'NULL'