mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-24 07:16:08 +08:00
修复重置应用秘钥
This commit is contained in:
parent
e96a2818b7
commit
5461325e69
|
@ -54,7 +54,17 @@ export default class OpenService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async resetSecret(id: number): Promise<App> {
|
public async resetSecret(id: number): Promise<App> {
|
||||||
const tab: any = { client_secret: createRandomString(24, 24), tokens: [] };
|
const tab: any = {
|
||||||
|
client_secret: createRandomString(24, 24),
|
||||||
|
tokens: [],
|
||||||
|
id,
|
||||||
|
};
|
||||||
|
// const doc = await this.get(id);
|
||||||
|
// const tab = new App({ ...doc });
|
||||||
|
// tab.client_secret = createRandomString(24, 24);
|
||||||
|
// tab.tokens = [];
|
||||||
|
// const newDoc = await this.updateDb(tab);
|
||||||
|
// return newDoc;
|
||||||
const newDoc = await this.updateDb(tab);
|
const newDoc = await this.updateDb(tab);
|
||||||
return newDoc;
|
return newDoc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user