mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 21:11:39 +01:00
forgot to remove one line of debugging lol
This commit is contained in:
@@ -68,7 +68,6 @@ export async function deleteAuthRecord(userId: string): Promise<void> {
|
|||||||
try {
|
try {
|
||||||
const data = await db.query<getAuthRecordQuery[][]>("SELECT * FROM auth WHERE user=$userId;", { userId });
|
const data = await db.query<getAuthRecordQuery[][]>("SELECT * FROM auth WHERE user=$userId;", { userId });
|
||||||
if (!data[0] || !data[0][0]) return undefined;
|
if (!data[0] || !data[0][0]) return undefined;
|
||||||
console.log(data)
|
|
||||||
for (const obj of data[0]) {
|
for (const obj of data[0]) {
|
||||||
db.delete(obj.id);
|
db.delete(obj.id);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user