From 6b45b2d7e9b97cae380931be36ad23ff16a5cea8 Mon Sep 17 00:00:00 2001 From: Kethan Vegunta Date: Thu, 26 Dec 2024 10:45:21 -0800 Subject: [PATCH] chore: UnauthorizedError file misspelled as UnathorizedError (#10157) Fixes misspelled file. --------- Co-authored-by: Jacob Fletcher --- .../src/errors/{UnathorizedError.ts => UnauthorizedError.ts} | 0 packages/payload/src/preferences/operations/delete.ts | 2 +- packages/payload/src/preferences/operations/update.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/payload/src/errors/{UnathorizedError.ts => UnauthorizedError.ts} (100%) diff --git a/packages/payload/src/errors/UnathorizedError.ts b/packages/payload/src/errors/UnauthorizedError.ts similarity index 100% rename from packages/payload/src/errors/UnathorizedError.ts rename to packages/payload/src/errors/UnauthorizedError.ts diff --git a/packages/payload/src/preferences/operations/delete.ts b/packages/payload/src/preferences/operations/delete.ts index a24527a7f47..da55d20b096 100644 --- a/packages/payload/src/preferences/operations/delete.ts +++ b/packages/payload/src/preferences/operations/delete.ts @@ -2,7 +2,7 @@ import type { Document, Where } from '../../types/index.js' import type { PreferenceRequest } from '../types.js' import { NotFound } from '../../errors/NotFound.js' -import { UnauthorizedError } from '../../errors/UnathorizedError.js' +import { UnauthorizedError } from '../../errors/UnauthorizedError.js' export async function deleteOperation(args: PreferenceRequest): Promise { const { diff --git a/packages/payload/src/preferences/operations/update.ts b/packages/payload/src/preferences/operations/update.ts index b1b0e37f486..3b002a88793 100644 --- a/packages/payload/src/preferences/operations/update.ts +++ b/packages/payload/src/preferences/operations/update.ts @@ -1,7 +1,7 @@ import type { Where } from '../../types/index.js' import type { PreferenceUpdateRequest } from '../types.js' -import { UnauthorizedError } from '../../errors/UnathorizedError.js' +import { UnauthorizedError } from '../../errors/UnauthorizedError.js' export async function update(args: PreferenceUpdateRequest) { const {