Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CymaticLabs.InfluxDB.Studio/Data/InfluxDataNetClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public async override Task<InfluxDbApiResponse> CreateRetentionPolicyAsync(strin
// If the default was supplied, run a second query to alter and add the default status since InfluxData.NET doesn't allow for the default argument
if (response != null && response.Success && isDefault)
{
var alterResponse = await influx.Client.QueryAsync(string.Format("ALTER RETENTION POLICY \"{0}\" ON \"{1}\" DEFAULT",database, policyName, database)).ConfigureAwait(false);
var alterResponse = await influx.Client.QueryAsync(string.Format("ALTER RETENTION POLICY \"{0}\" ON \"{1}\" DEFAULT", policyName, database)).ConfigureAwait(false);
}

return new InfluxDbApiResponse(response.Body, response.StatusCode, response.Success);
Expand Down Expand Up @@ -157,7 +157,7 @@ public async override Task<InfluxDbApiResponse> AlterRetentionPolicyAsync(string
// If the default was supplied, run a second query to alter and add the default status since InfluxData.NET doesn't allow for the default argument
if (response != null && response.Success && isDefault)
{
var alterResponse = await influx.Client.QueryAsync(string.Format("ALTER RETENTION POLICY \"{0}\" ON \"{1}\" DEFAULT",database, policyName, database)).ConfigureAwait(false);
var alterResponse = await influx.Client.QueryAsync(string.Format("ALTER RETENTION POLICY \"{0}\" ON \"{1}\" DEFAULT", policyName, database)).ConfigureAwait(false);
}

return new InfluxDbApiResponse(response.Body, response.StatusCode, response.Success);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public bool IsCreating
isCreating = value;
nameTextBox.ReadOnly = !isCreating;
createButton.Text = isCreating ? "Create" : "Update";
Text = isCreating ? "Create Retention Policy" : "Alter Retention Policy";
}
}

Expand Down