Spelling and grammar corrections

This commit is contained in:
Dom
2024-12-29 22:34:57 +10:00
parent ba45b27608
commit 2af8d6f565
208 changed files with 397 additions and 397 deletions

View File

@@ -31,7 +31,7 @@ export const sshRouter = createTRPCRouter({
} catch (error) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error to create the ssh key",
message: "Error creating the SSH key",
cause: error,
});
}
@@ -45,7 +45,7 @@ export const sshRouter = createTRPCRouter({
// TODO: Remove isCloud in the next versions of dokploy
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not allowed to delete this ssh key",
message: "You are not allowed to delete this SSH key",
});
}
@@ -63,7 +63,7 @@ export const sshRouter = createTRPCRouter({
// TODO: Remove isCloud in the next versions of dokploy
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not allowed to access this ssh key",
message: "You are not allowed to access this SSH key",
});
}
return sshKey;
@@ -89,14 +89,14 @@ export const sshRouter = createTRPCRouter({
// TODO: Remove isCloud in the next versions of dokploy
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not allowed to update this ssh key",
message: "You are not allowed to update this SSH key",
});
}
return await updateSSHKeyById(input);
} catch (error) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error to update this ssh key",
message: "Error updating this SSH key",
cause: error,
});
}