refactor: Rename create test action as test connection

This commit is contained in:
Faruk AYDIN
2024-08-26 16:26:03 +03:00
parent 22002d50ac
commit ce6214dc0f
3 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import { renderObject } from '../../../../helpers/renderer.js';
export default async (request, response) => {
let connection = await request.currentUser.authorizedConnections
.clone()
.findOne({
id: request.params.connectionId,
})
.throwIfNotFound();
connection = await connection.testAndUpdateConnection();
renderObject(response, connection);
};