mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-27 10:47:01 +00:00
Update database schema to use UUIDs for primary keys
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/c3b7d9a5-de8b-4951-8fe9-8c111686d08e.jpg
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ export function setupAuth(app: Express) {
|
||||
);
|
||||
|
||||
passport.serializeUser((user, done) => done(null, user.id));
|
||||
passport.deserializeUser(async (id: number, done) => {
|
||||
passport.deserializeUser(async (id: string, done) => {
|
||||
try {
|
||||
const user = await storage.getUser(id);
|
||||
done(null, user);
|
||||
|
||||
Reference in New Issue
Block a user