refactor(devstar-api): not need user as member

This commit is contained in:
Levi Yan
2025-03-23 16:34:03 +08:00
parent 1d1eb092a9
commit 5813fe2c20
2 changed files with 9 additions and 12 deletions

View File

@@ -43,8 +43,8 @@ export class DevStarExtension {
await this.user.createUserSSHKey()
.then(async () => {
// 上传公钥
const devstarAPIHandler = new DevstarAPIHandler(this.user)
await devstarAPIHandler.uploadUserPublicKey()
const devstarAPIHandler = new DevstarAPIHandler()
await devstarAPIHandler.uploadUserPublicKey(this.user)
.then(async (res) => {
if (res === "ok") {
// 打开项目
@@ -73,8 +73,8 @@ export class DevStarExtension {
await this.user.createUserSSHKey()
.then(async () => {
// 上传公钥
const devstarAPIHandler = new DevstarAPIHandler(this.user)
await devstarAPIHandler.uploadUserPublicKey()
const devstarAPIHandler = new DevstarAPIHandler()
await devstarAPIHandler.uploadUserPublicKey(this.user)
.then(async (res) => {
if (res === "ok") {
// 打开项目