fix(core.gbapp): Fix deployer group.
This commit is contained in:
parent
ed67da171c
commit
063c149b94
2 changed files with 9 additions and 6 deletions
|
@ -47,6 +47,7 @@ import { GBLogEx } from '../../core.gbapp/services/GBLogEx.js';
|
|||
* Basic services for BASIC manipulation.
|
||||
*/
|
||||
export class ScheduleServices extends GBService {
|
||||
|
||||
public async deleteScheduleIfAny(min: GBMinInstance, name: string) {
|
||||
|
||||
let i = 1;
|
||||
|
|
|
@ -22,20 +22,22 @@ export class SecService extends GBService {
|
|||
displayName: string,
|
||||
email: string
|
||||
): Promise<GuaribasUser> {
|
||||
|
||||
const gbaiPath = DialogKeywords.getGBAIPath(min.botId);
|
||||
const dir = urlJoin ('work',gbaiPath, 'users', userSystemId);
|
||||
|
||||
if (!Fs.existsSync(dir)) {
|
||||
mkdirp.sync(dir);
|
||||
}
|
||||
|
||||
let user = await GuaribasUser.findOne({
|
||||
where: {
|
||||
userSystemId: userSystemId
|
||||
}
|
||||
});
|
||||
|
||||
const gbaiPath = DialogKeywords.getGBAIPath(min.botId);
|
||||
const dir = urlJoin ('work',gbaiPath, 'users', userSystemId);
|
||||
|
||||
if (!user) {
|
||||
user = GuaribasUser.build();
|
||||
if (!Fs.existsSync(dir)) {
|
||||
mkdirp.sync(dir);
|
||||
}
|
||||
}
|
||||
|
||||
const systemPromptFile = urlJoin(dir, 'systemPrompt.txt');
|
||||
|
|
Loading…
Add table
Reference in a new issue