Skip to content

Commit 5f0fcb6

Browse files
committed
fix(Api): Fixed the DatabaseProvisioner, which was attempting to deserialize Namespaces to NamespaceDefinitions
Fixes #509 Signed-off-by: Charles d'Avernas <[email protected]>
1 parent 9827c63 commit 5f0fcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/Synapse.Api.Application/Services/DatabaseProvisioner .cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected virtual async Task ProvisionNamespacesAsync(IResourceRepository resour
132132
using var stream = file.OpenRead();
133133
using var streamReader = new StreamReader(stream);
134134
var text = await streamReader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
135-
var ns = serializer.Deserialize<NamespaceDefinition>(text)!;
135+
var ns = serializer.Deserialize<Namespace>(text)!;
136136
await resources.AddAsync(ns, false, cancellationToken).ConfigureAwait(false);
137137
this.Logger.LogInformation("Successfully imported namespace '{namespace}' from file '{file}'", $"{ns.Metadata.Name}", file.FullName);
138138
count++;

0 commit comments

Comments
 (0)