Skip to content
Merged
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
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack/glue-plugin-postgres",
"version": "0.0.7",
"version": "0.0.8",
"description": "gluestack plugin for postgres",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions dist/src/commands/postgresConfig.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/commands/postgresConfig.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack/glue-plugin-postgres",
"version": "0.0.7",
"version": "0.0.8",
"description": "gluestack plugin for postgres",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/commands/postgresConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export const writeInstance = async (pluginInstance: PluginInstance) => {
const response = await prompts(
getNewInstanceQuestions(pluginInstance.gluePluginStore.get("db_config")),
);

// trim the values in an object
Object.keys(response).forEach(key => response[key] = response[key].trim());

pluginInstance.gluePluginStore.set("db_config", response);
console.log();
console.log(`Saved ${pluginInstance.getName()} config`);
Expand Down