diff --git a/apps/consent/app/graphql/generated.ts b/apps/consent/app/graphql/generated.ts index ccd48d06bf..108647cdb6 100644 --- a/apps/consent/app/graphql/generated.ts +++ b/apps/consent/app/graphql/generated.ts @@ -2346,4 +2346,4 @@ export function useGetUserIdSuspenseQuery(baseOptions?: Apollo.SkipToken | Apoll export type GetUserIdQueryHookResult = ReturnType; export type GetUserIdLazyQueryHookResult = ReturnType; export type GetUserIdSuspenseQueryHookResult = ReturnType; -export type GetUserIdQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetUserIdQueryResult = Apollo.QueryResult; diff --git a/apps/map/services/galoy/graphql/generated.ts b/apps/map/services/galoy/graphql/generated.ts index a8ed2e98cd..37fa8b5092 100644 --- a/apps/map/services/galoy/graphql/generated.ts +++ b/apps/map/services/galoy/graphql/generated.ts @@ -2360,4 +2360,4 @@ export function useBusinessMapMarkersSuspenseQuery(baseOptions?: Apollo.SkipToke export type BusinessMapMarkersQueryHookResult = ReturnType; export type BusinessMapMarkersLazyQueryHookResult = ReturnType; export type BusinessMapMarkersSuspenseQueryHookResult = ReturnType; -export type BusinessMapMarkersQueryResult = Apollo.QueryResult; \ No newline at end of file +export type BusinessMapMarkersQueryResult = Apollo.QueryResult; diff --git a/apps/pay/lib/graphql/generated.ts b/apps/pay/lib/graphql/generated.ts index 3e75846c50..86f2e4fb98 100644 --- a/apps/pay/lib/graphql/generated.ts +++ b/apps/pay/lib/graphql/generated.ts @@ -3016,4 +3016,4 @@ export function usePriceSubscription(baseOptions: Apollo.SubscriptionHookOptions return Apollo.useSubscription(PriceDocument, options); } export type PriceSubscriptionHookResult = ReturnType; -export type PriceSubscriptionResult = Apollo.SubscriptionResult; \ No newline at end of file +export type PriceSubscriptionResult = Apollo.SubscriptionResult; diff --git a/core/api/src/migrations/20250702204019-remove-embedded-contacts.ts b/core/api/src/migrations/20250702204019-remove-embedded-contacts.ts new file mode 100644 index 0000000000..adac7c7f8d --- /dev/null +++ b/core/api/src/migrations/20250702204019-remove-embedded-contacts.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +module.exports = { + async up(db) { + console.log("Removing embedded contacts from accounts...") + + const result = await db.collection("accounts").updateMany( + {}, + { $unset: { contacts: "" } } + ) + + console.log(`Unset contacts field in ${result.modifiedCount} accounts`) + }, + + async down() { + return true + }, +}