last ...
This commit is contained in:
@@ -714,14 +714,14 @@ namespace xAiModels.Providers
|
||||
cancellationToken: cancellationToken,
|
||||
predicate: x =>
|
||||
x.ResourceTitle
|
||||
.ToNormalString()
|
||||
// .ToNormalString()
|
||||
.Contains(ownerId.ToNormalString()) &&
|
||||
x.ResourceTitle
|
||||
.ToNormalString()
|
||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier
|
||||
.ToNormalString()) &&
|
||||
// .ToNormalString()
|
||||
// .ToNormalString()
|
||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier) &&
|
||||
x.TranslatedValue
|
||||
.ToNormalString()
|
||||
// .ToNormalString()
|
||||
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix)
|
||||
);
|
||||
if (resource.IsNullOrDefault())
|
||||
@@ -1038,14 +1038,14 @@ namespace xAiModels.Providers
|
||||
.Contains(ownerId.ToNormalString()) &&
|
||||
x.ResourceTitle
|
||||
.ToNormalString()
|
||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier
|
||||
.ToNormalString()) &&
|
||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier.ToNormalString()) &&
|
||||
x.TranslatedValue
|
||||
.ToNormalString()
|
||||
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix)
|
||||
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix.ToNormalString())
|
||||
);
|
||||
result = !defaultProjectResource.IsNullOrDefault();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1101,7 +1101,7 @@ namespace xAiModels.Providers
|
||||
// Prepare Tile and Description Resource Ids ...
|
||||
var titleResource = await projectTitleResourceProvider.AddOrUpdateLocale(
|
||||
owner: ownerId,
|
||||
identifier: $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||
locale: new XLocaleResourceDto
|
||||
{
|
||||
Language = defaultLang,
|
||||
@@ -1111,7 +1111,7 @@ namespace xAiModels.Providers
|
||||
);
|
||||
var descriptionResource = await projectDescriptionResourceProvider.AddOrUpdateLocale(
|
||||
owner: ownerId,
|
||||
identifier: $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||
new XLocaleResourceDto
|
||||
{
|
||||
Language = defaultLang,
|
||||
@@ -1192,7 +1192,7 @@ namespace xAiModels.Providers
|
||||
{
|
||||
//
|
||||
project = await projectRepositoryService.GetAsync(
|
||||
id: project.Id,
|
||||
id: projectId,
|
||||
includeBuilder: null,
|
||||
ignoreSoftDeleteds: true,
|
||||
cancellationToken: cancellationToken
|
||||
@@ -1209,14 +1209,14 @@ namespace xAiModels.Providers
|
||||
cancellationToken: cancellationToken,
|
||||
predicate: x =>
|
||||
x.ResourceTitle
|
||||
.ToNormalString()
|
||||
.Contains(projectId.ToString().ToNormalString()) &&
|
||||
// .ToNormalString()
|
||||
// .ToNormalString()
|
||||
.Contains(projectId.ToString()) &&
|
||||
x.ResourceTitle
|
||||
.ToNormalString()
|
||||
.Contains(XAiModelsConstants.XAiConversationTitleIdentifier
|
||||
.ToNormalString()) &&
|
||||
// .ToNormalString()
|
||||
.Contains(XAiModelsConstants.XAiConversationTitleIdentifier) &&
|
||||
x.TranslatedValue
|
||||
.ToNormalString()
|
||||
// .ToNormalString()
|
||||
.Contains(XAiDataProviderConstants.XDefaultAiConversationSuffix)
|
||||
);
|
||||
result = !resource.IsNullOrDefault();
|
||||
@@ -1226,13 +1226,13 @@ namespace xAiModels.Providers
|
||||
}
|
||||
|
||||
//
|
||||
result = !(await conversationRepositoryService.FindOneAsync(
|
||||
var defaultConversation = await conversationRepositoryService.FindOneAsync(
|
||||
cancellationToken: cancellationToken,
|
||||
predicate: x =>
|
||||
x.ProjectId == projectId &&
|
||||
x.Title == resource.ResourceTitle
|
||||
))
|
||||
.IsNullOrDefault();
|
||||
);
|
||||
result = !defaultConversation.IsNullOrDefault();
|
||||
|
||||
//
|
||||
return result;
|
||||
@@ -1282,7 +1282,7 @@ namespace xAiModels.Providers
|
||||
{
|
||||
//
|
||||
project = await projectRepositoryService.GetAsync(
|
||||
id: project.Id,
|
||||
id: projectId,
|
||||
includeBuilder: null,
|
||||
ignoreSoftDeleteds: true,
|
||||
cancellationToken: cancellationToken
|
||||
@@ -1324,7 +1324,7 @@ namespace xAiModels.Providers
|
||||
// Prepare Title Resource Ids ...
|
||||
var titleResource = await conversationTitleResourceProvider.AddOrUpdateLocale(
|
||||
owner: ownerId,
|
||||
identifier: $"{XAiDataProviderConstants.XDefaultAiConversationSuffix}_{item.Id}",
|
||||
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiConversationSuffix}_{item.Id}",
|
||||
locale: new XLocaleResourceDto
|
||||
{
|
||||
Language = defaultLang,
|
||||
|
||||
Reference in New Issue
Block a user