changed user.premium_since to also load from the database.

This commit is contained in:
Iratu
2022-02-18 19:50:11 +03:00
committed by Erkin Alp Güney
parent 3352f3b75a
commit 46f77f8e38
4 changed files with 12 additions and 1 deletions
+4
View File
@@ -2821,6 +2821,10 @@
"type": "string",
"format": "date-time"
},
"premium_since": {
"type": "string",
"format": "date-time"
},
"verified": {
"type": "boolean"
},
+1 -1
View File
@@ -39,7 +39,7 @@ router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }),
res.json({
connected_accounts: user.connected_accounts,
premium_guild_since: premium_guild_since, // TODO
premium_since: null, // TODO
premium_since: user.premium_since, // TODO
mutual_guilds: mutual_guilds, // TODO {id: "", nick: null} when ?with_mutual_guilds=true
user: {
username: user.username,