refactor(devstar-api): not need user as member
This commit is contained in:
@@ -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") {
|
||||
// 打开项目
|
||||
|
Reference in New Issue
Block a user