Commit 69bc8c4
Fix type: use StackServerApp<true, "internal"> to preserve internal user type
The getStackServerApp() was typed as plain StackServerApp (defaults to
<boolean, string>), losing the 'internal' ProjectId type parameter.
This caused getUser() to return CurrentServerUser instead of
CurrentInternalServerUser, which doesn't have listOwnedProjects.
Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>1 parent 0736a0d commit 69bc8c4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments