mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: getMe on launch
This commit is contained in:
parent
d801bad49e
commit
df5f82d47f
5 changed files with 89 additions and 72 deletions
|
@ -44,7 +44,8 @@ export class HydraApi {
|
|||
return userSubscriptionRepository
|
||||
.findOne({ where: { id: 1 } })
|
||||
.then((userSubscription) => {
|
||||
if (userSubscription?.status !== "active") return false;
|
||||
if (!userSubscription) return false;
|
||||
|
||||
return (
|
||||
!userSubscription.expiresAt ||
|
||||
userSubscription!.expiresAt > new Date()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue