mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-19 08:03:06 +00:00
Fold duplicated campanha access, loaders, list/filter/form shells, and scripts into shared modules; reorganize utilities by domain; stabilize e2e; and document prevention-first audit workflow so the same smells cannot creep back in.
6 lines
279 B
TypeScript
6 lines
279 B
TypeScript
export const isUniqueSupporterConflict = (error: unknown): boolean => {
|
|
const message = error instanceof Error ? error.message : String(error)
|
|
return /supporter.*contact.*municipality|supporter_contact_municipality|nulls_not_distinct|duplicate key/i.test(
|
|
message,
|
|
)
|
|
}
|