import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input"; import { UpdateDatabasePassword } from "@/components/shared/update-database-password"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { api } from "@/utils/api"; import { toast } from "sonner"; interface Props { postgresId: string; } export const ShowInternalPostgresCredentials = ({ postgresId }: Props) => { const { data } = api.postgres.one.useQuery({ postgresId }); const utils = api.useUtils(); const { mutateAsync: changePassword } = api.postgres.changePassword.useMutation(); return ( <>
Internal Credentials
{ await changePassword({ postgresId, password: newPassword, }); toast.success("Password updated successfully"); utils.postgres.one.invalidate({ postgresId }); }} />
); }; // ReplyError: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-w