Skip to content

Commit

Permalink
Files: fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 28, 2021
1 parent bedfad1 commit 9d43cb0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions products/ASC.Files/Core/Core/Dao/TeamlabDao/LinkDao.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using ASC.Common.Caching;
using ASC.Core;
using ASC.Core.Common.EF;
using ASC.Core.Common.EF.Context;
using ASC.Core.Common.Settings;
using ASC.Core.Tenants;
using ASC.Files.Core.EF;
Expand All @@ -34,11 +35,12 @@ namespace ASC.Files.Core.Data
[Scope]
internal class LinkDao : AbstractDao, ILinkDao
{
public DbContextManager<FilesDbContext> DbContextManager { get; }
public DbContextManager<EF.FilesDbContext> DbContextManager { get; }

public LinkDao(
UserManager userManager,
DbContextManager<FilesDbContext> dbContextManager,
DbContextManager<EF.FilesDbContext> dbContextManager,
DbContextManager<TenantDbContext> dbContextManager1,
TenantManager tenantManager,
TenantUtil tenantUtil,
SetupInfo setupInfo,
Expand All @@ -52,6 +54,7 @@ internal class LinkDao : AbstractDao, ILinkDao
ICache cache)
: base(
dbContextManager,
dbContextManager1,
userManager,
tenantManager,
tenantUtil,
Expand Down
2 changes: 1 addition & 1 deletion products/ASC.Files/Core/Core/EF/DbFilesLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static ModelBuilderWrapper AddDbFilesLink(this ModelBuilderWrapper modelB
{
modelBuilder
.Add(MySqlAddDbFilesLink, Provider.MySql)
.Add(PgSqlAddDbFilesLink, Provider.Postgre);
.Add(PgSqlAddDbFilesLink, Provider.PostgreSql);
return modelBuilder;
}
public static void MySqlAddDbFilesLink(this ModelBuilder modelBuilder)
Expand Down
8 changes: 7 additions & 1 deletion web/ASC.Web.Core/Files/FileUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ public List<string> ExtsCoAuthoring
get => extsCoAuthoring ??= (Configuration.GetSection("files:docservice:coauthor-docs").Get<string[]>() ?? new string[] { }).ToList();
}

private string masterFormExtension;
public string MasterFormExtension
{
get => masterFormExtension ??= Configuration["files:docservice:internal-form"] ?? ".docxf";
}

public Dictionary<FileType, string> InternalExtension
{
get => new Dictionary<FileType, string>
Expand Down Expand Up @@ -553,7 +559,7 @@ public List<string> ExtsCoAuthoring
};
public Dictionary<FileType, string> InternalExtension => FileUtilityConfiguration.InternalExtension;

public string MasterFormExtension { get => Configuration["files:docservice:internal-form"] ?? ".docxf"; }
public string MasterFormExtension { get => FileUtilityConfiguration.MasterFormExtension; }
public enum CsvDelimiter
{
None = 0,
Expand Down

0 comments on commit 9d43cb0

Please sign in to comment.