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

@@ -42,7 +42,7 @@ export const mysqlRouter = createTRPCRouter({
if (IS_CLOUD && !input.serverId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You need to use a server to create a mysql",
message: "You need to use a server to create a MySQL",
});
}
1;
@@ -74,7 +74,7 @@ export const mysqlRouter = createTRPCRouter({
}
throw new TRPCError({
code: "BAD_REQUEST",
message: "Error input: Inserting mysql database",
message: "Error input: Inserting MySQL database",
cause: error,
});
}
@@ -89,7 +89,7 @@ export const mysqlRouter = createTRPCRouter({
if (mysql.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to access this mysql",
message: "You are not authorized to access this MySQL",
});
}
return mysql;
@@ -102,7 +102,7 @@ export const mysqlRouter = createTRPCRouter({
if (service.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to start this mysql",
message: "You are not authorized to start this MySQL",
});
}
@@ -124,7 +124,7 @@ export const mysqlRouter = createTRPCRouter({
if (mongo.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to stop this mysql",
message: "You are not authorized to stop this MySQL",
});
}
if (mongo.serverId) {
@@ -161,7 +161,7 @@ export const mysqlRouter = createTRPCRouter({
if (mysql.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to deploy this mysql",
message: "You are not authorized to deploy this MySQL",
});
}
return deployMySql(input.mysqlId);
@@ -173,7 +173,7 @@ export const mysqlRouter = createTRPCRouter({
if (mongo.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to change this mysql status",
message: "You are not authorized to change this MySQL status",
});
}
await updateMySqlById(input.mysqlId, {
@@ -188,7 +188,7 @@ export const mysqlRouter = createTRPCRouter({
if (mysql.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to reload this mysql",
message: "You are not authorized to reload this MySQL",
});
}
if (mysql.serverId) {
@@ -219,7 +219,7 @@ export const mysqlRouter = createTRPCRouter({
if (mongo.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to delete this mysql",
message: "You are not authorized to delete this MySQL",
});
}
@@ -253,7 +253,7 @@ export const mysqlRouter = createTRPCRouter({
if (!service) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Update: Error to add environment variables",
message: "Error adding environment variables",
});
}
@@ -267,7 +267,7 @@ export const mysqlRouter = createTRPCRouter({
if (mysql.project.adminId !== ctx.user.adminId) {
throw new TRPCError({
code: "UNAUTHORIZED",
message: "You are not authorized to update this mysql",
message: "You are not authorized to update this MySQL",
});
}
const service = await updateMySqlById(mysqlId, {
@@ -277,7 +277,7 @@ export const mysqlRouter = createTRPCRouter({
if (!service) {
throw new TRPCError({
code: "BAD_REQUEST",
message: "Update: Error to update mysql",
message: "Update: Error updating MySQL",
});
}