Skip to content

Commit

Permalink
chore: update expo
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorpfiz committed Nov 12, 2024
1 parent f78aa2c commit d0610d3
Show file tree
Hide file tree
Showing 11 changed files with 1,781 additions and 399 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"ai": "^3.4.33",
"date-fns": "catalog:dates",
"geist": "^1.3.1",
"lucide-react": "^0.454.0",
"lucide-react": "^0.456.0",
"luxon": "catalog:dates",
"next": "^14.2.16",
"next-safe-action": "^7.9.9",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"node": ">=20.16.0",
"pnpm": "^9.6.0"
},
"packageManager": "[email protected]+sha256.24235772cc4ac82a62627cd47f834c72667a2ce87799a846ec4e8e555e2d4b8b",
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"scripts": {
"build": "turbo run build",
"clean": "git clean -xdf node_modules",
Expand Down
5 changes: 5 additions & 0 deletions packages/api/src/router/dexcom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export const dexcomRouter = {
authorize: protectedProcedure
.input(z.object({ code: z.string() }))
.mutation(async ({ input }) => {
console.log("testatdsdsdsdgssdg", input.code);

const tokenData = await exchangeAuthorizationCode(input.code);

console.log("tokenData", tokenData);

return {
accessToken: tokenData.access_token,
refreshToken: tokenData.refresh_token,
Expand Down
15 changes: 15 additions & 0 deletions packages/db/migrations/0007_abandoned_nebula.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ALTER TABLE "hyper_activity" RENAME COLUMN "updatedAt" TO "updated_at";--> statement-breakpoint
ALTER TABLE "hyper_cgm_data" RENAME COLUMN "updatedAt" TO "updated_at";--> statement-breakpoint
ALTER TABLE "hyper_daily_recap" RENAME COLUMN "updatedAt" TO "updated_at";--> statement-breakpoint
ALTER TABLE "hyper_meal" RENAME COLUMN "updatedAt" TO "updated_at";--> statement-breakpoint
ALTER TABLE "hyper_report" RENAME COLUMN "updatedAt" TO "updated_at";--> statement-breakpoint
ALTER TABLE "hyper_cgm_data" DROP CONSTRAINT "hyper_cgm_data_record_id_unique";--> statement-breakpoint
ALTER TABLE "hyper_daily_recap" DROP CONSTRAINT "hyper_daily_recap_date_profile_id_unique";--> statement-breakpoint
ALTER TABLE "hyper_report" ADD COLUMN "report_type" varchar(50) NOT NULL;--> statement-breakpoint
ALTER TABLE "hyper_report" ADD COLUMN "start_time" timestamp with time zone NOT NULL;--> statement-breakpoint
ALTER TABLE "hyper_report" ADD COLUMN "end_time" timestamp with time zone NOT NULL;--> statement-breakpoint
ALTER TABLE "hyper_report" ADD COLUMN "generated_at" timestamp with time zone NOT NULL;--> statement-breakpoint
ALTER TABLE "hyper_report" DROP COLUMN IF EXISTS "title";--> statement-breakpoint
ALTER TABLE "hyper_report" DROP COLUMN IF EXISTS "content";--> statement-breakpoint
ALTER TABLE "hyper_cgm_data" ADD CONSTRAINT "hyper_cgm_data_recordId_unique" UNIQUE("record_id");--> statement-breakpoint
ALTER TABLE "hyper_daily_recap" ADD CONSTRAINT "daily_recap_date_profile_unique" UNIQUE("date","profile_id");
Loading

0 comments on commit d0610d3

Please sign in to comment.