mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 20:08:17 +03:00
Mutate session on pfp status change
This commit is contained in:
@@ -66,6 +66,9 @@ router.put(
|
||||
}
|
||||
|
||||
if (updateBanner) {
|
||||
if (req.session.tachi?.user) {
|
||||
req.session.tachi.user.customBanner = true;
|
||||
}
|
||||
await db.users.update({ id: user.id }, { $set: { customBanner: true } });
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,9 @@ router.put(
|
||||
}
|
||||
|
||||
if (updatePfp) {
|
||||
if (req.session.tachi?.user) {
|
||||
req.session.tachi.user.customPfp = true;
|
||||
}
|
||||
await db.users.update({ id: user.id }, { $set: { customPfp: true } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user