Integrated "created by" system

This commit is contained in:
2025-11-20 09:22:59 -05:00
parent 7a31c77c7e
commit 105b28d9a4
3 changed files with 16 additions and 2 deletions

View File

@@ -20,4 +20,15 @@ export async function setUserState(userID: number, state: MemberState) {
SET state = ?
WHERE id = ?;`;
return await pool.query(sql, [state, userID]);
}
}
declare global {
namespace Express {
interface Request {
user: {
id: number;
name: string;
};
}
}
}