rhythia-api 64.0.0 → 65.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/getProfile.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { createClient } from "@supabase/supabase-js";
2
1
  import z from "zod";
3
- import { Database } from "../types/supabase";
2
+ import { supabase } from "../utils/supabase";
4
3
 
5
4
  export const Schema = {
6
5
  input: z.object({
@@ -24,17 +23,6 @@ export const Schema = {
24
23
  }),
25
24
  };
26
25
 
27
- const supabase = createClient<Database>(
28
- `https://pfkajngbllcbdzoylrvp.supabase.co`,
29
- process.env.ADMIN_KEY!,
30
- {
31
- auth: {
32
- autoRefreshToken: false,
33
- persistSession: false,
34
- },
35
- }
36
- );
37
-
38
26
  export async function GET(
39
27
  res: Response
40
28
  ): Promise<(typeof Schema)["output"]["_type"]> {
package/index.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { handleApi } from "./handleApi"
2
2
 
3
- // ./api/editUser.ts API
4
- import { Schema as EditUser } from "./api/editUser"
5
- export { Schema as SchemaEditUser } from "./api/editUser"
6
- export const editUser = handleApi({url:"/api/editUser",...EditUser})
3
+ // ./api/editProfile.ts API
4
+ import { Schema as EditProfile } from "./api/editProfile"
5
+ export { Schema as SchemaEditProfile } from "./api/editProfile"
6
+ export const editProfile = handleApi({url:"/api/editProfile",...EditProfile})
7
7
 
8
8
  // ./api/getProfile.ts API
9
9
  import { Schema as GetProfile } from "./api/getProfile"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "64.0.0",
3
+ "version": "65.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",
@@ -2,7 +2,6 @@ import fs from "fs";
2
2
  import * as git from "isomorphic-git";
3
3
  import http from "isomorphic-git/http/node";
4
4
  import path from "path";
5
- import { getUser } from "..";
6
5
 
7
6
  // Set up the repository URL
8
7
  const repoUrl = `https://${process.env.GIT_KEY}@github.com/cunev/rhythia-api.git`;
@@ -75,7 +74,3 @@ async function cloneBranch() {
75
74
  }
76
75
 
77
76
  cloneBranch();
78
-
79
- const user = await getUser({ id: "0" });
80
- if (user) {
81
- }
@@ -0,0 +1,13 @@
1
+ import { createClient } from "@supabase/supabase-js";
2
+ import { Database } from "../types/supabase";
3
+
4
+ export const supabase = createClient<Database>(
5
+ `https://pfkajngbllcbdzoylrvp.supabase.co`,
6
+ process.env.ADMIN_KEY!,
7
+ {
8
+ auth: {
9
+ autoRefreshToken: false,
10
+ persistSession: false,
11
+ },
12
+ }
13
+ );
File without changes