Skip to content

Commit c5552ec

Browse files
committed
fix: 回退租户相关代码
1 parent 76f5e9a commit c5552ec

4 files changed

Lines changed: 1 addition & 15 deletions

File tree

packages/code-service/src/code-model.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class CodeModelService {
5252
owner: config.owner,
5353
name: config.name,
5454
platform: config.platform,
55-
tenant: config.tenant,
5655
commit: 'HEAD',
5756
},
5857
]);

packages/code-service/src/commands.contribution.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class CommandsContribution extends Disposable implements CommandContribut
255255
}
256256

257257
async repository() {
258-
const { HEAD, commit, headLabel, name, owner, platform, ref, refs, tenant } =
258+
const { HEAD, commit, headLabel, name, owner, platform, ref, refs } =
259259
this.codeModel.rootRepository;
260260
return {
261261
HEAD,
@@ -266,7 +266,6 @@ export class CommandsContribution extends Disposable implements CommandContribut
266266
platform,
267267
ref,
268268
origin: CODE_PLATFORM_CONFIG[platform].origin,
269-
tenant,
270269
// refs: refs
271270
};
272271
}

packages/code-service/src/repository.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ export class Repository implements IRepositoryModel {
6565
return this._name;
6666
}
6767

68-
/**
69-
* 小程序仓库租户
70-
*/
71-
private _tenant: string;
72-
get tenant() {
73-
return this._tenant;
74-
}
75-
7668
/**
7769
* commit
7870
*/
@@ -111,14 +103,12 @@ export class Repository implements IRepositoryModel {
111103
owner: string;
112104
name: string;
113105
commit: string;
114-
tenant: string;
115106
}) {
116107
this._root = data.root;
117108
this._platform = data.platform;
118109
this._owner = data.owner;
119110
this._name = data.name;
120111
this._commit = data.commit;
121-
this._tenant = data.tenant;
122112
}
123113

124114
async addSubmodulePath(path: string) {

packages/code-service/src/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ export type ICodeServiceConfig = {
4242
commit?: string;
4343
/** url hash */
4444
hash?: string;
45-
/** 租户 */
46-
tenant?: string;
4745
} & {
4846
/** submodules 多平台配置 */
4947
[key in ICodePlatform]?: {

0 commit comments

Comments
 (0)