Changing user properties in db, (extending trail time) #736
-
Hi, I have a self hosted installation of plausible, but one of my accounts has stopped working. I it seems the trail period of that account has ended. I have discoverer I can create a new account with a 100 year trail with the following command:
After more testing, command provided above doesn't work! Now I need to adapt this command to update an existing user, but I don't know how to do that. This would be what I am looking for in pseudo ish code:
The above is not working code! Its there to show that I want to do, User.byEmail doesn't exist! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Followup! I looked at the documentation for Ecto and Elixir and found a solution! Here is a full guide for changing the trial expiry date
Edit: Updated for newer plausible versions, also added the user creating command. |
Beta Was this translation helpful? Give feedback.
Followup!
I looked at the documentation for Ecto and Elixir and found a solution!
Here is a full guide for changing the trial expiry date
Open the remote console on your plausible instance, (
docker ps
to find your instance name, mine was hosting-master_plausible_1)