MCPcopy Create free account
hub / github.com/dailydotdev/apps / getFinalViewRejectionCodes

Function getFinalViewRejectionCodes

packages/shared/src/lib/streakViewQueue.ts:79–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77// Read when called, not at module load: graphql/common sits in an import
78// cycle with this file, so ApiError can still be undefined at load time.
79const getFinalViewRejectionCodes = (): string[] => [
80 ApiError.NotFound,
81 ApiError.Forbidden,
82 ApiError.Unauthenticated,
83];
84
85export const isFinalViewRejection = (error: unknown): boolean => {
86 const errors = (error as Partial<ResponseError>)?.response?.errors;

Callers 1

isFinalViewRejectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected