Skip to content

Commit b051362

Browse files
committed
fix some errors
1 parent 2070568 commit b051362

19 files changed

+18
-36
lines changed

apps/convex/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export { api } from "./src/convex/_generated/api.ts";
2-
export type { Doc, Id } from "./src/convex/_generated/dataModel.ts";
1+
export { api } from "./src/convex/_generated/api";
2+
export type { Doc, Id } from "./src/convex/_generated/dataModel";
33

4-
import type { DataModel } from "./src/convex/_generated/dataModel.ts";
4+
import type { DataModel } from "./src/convex/_generated/dataModel";
55
export type Task = DataModel["tasks"]["document"];
66

77
export type Query<T> =

apps/convex/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@apps/convex",
3-
"module": "index.ts",
43
"type": "module",
54
"private": true,
65
"scripts": {

apps/convex/src/convex/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ See https://docs.convex.dev/functions for more.
66
A query function that takes two arguments looks like:
77

88
```ts
9-
// convex/myFunctions.ts
109
import { query } from "./_generated/server";
1110
import { v } from "convex/values";
1211

@@ -47,7 +46,6 @@ Using this query function in a Svelte component looks like:
4746
A mutation function looks like:
4847

4948
```ts
50-
// convex/myFunctions.ts
5149
import { mutation } from "./_generated/server";
5250
import { v } from "convex/values";
5351

apps/convex/src/convex/ResendOTP.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Resend from "@auth/core/providers/resend";
22
import { alphabet, generateRandomString } from "oslo/crypto";
33
import { Resend as ResendAPI } from "resend";
4-
import { AUTH_RESEND_KEY } from "./env.ts";
54

65
export const ResendOTP = Resend({
76
id: "resend-otp",

apps/convex/src/convex/ResendOTPPasswordReset.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Resend from "@auth/core/providers/resend";
22
import { alphabet, generateRandomString } from "oslo/crypto";
33
import { Resend as ResendAPI } from "resend";
4-
import { AUTH_RESEND_KEY } from "./env.ts";
54

65
export const ResendOTPPasswordReset = Resend({
76
id: "resend-otp",

apps/convex/src/convex/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Google from "@auth/core/providers/google";
22
import { Password } from "@convex-dev/auth/providers/Password";
33
import { convexAuth } from "@convex-dev/auth/server";
4-
import { ResendOTP } from "./ResendOTP.ts";
5-
import { ResendOTPPasswordReset } from "./ResendOTPPasswordReset.ts";
4+
import { ResendOTP } from "./ResendOTP";
5+
import { ResendOTPPasswordReset } from "./ResendOTPPasswordReset";
66

77
export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({
88
providers: [

apps/convex/src/convex/channels.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { v } from "convex/values";
2-
import { mutation, query } from "./_generated/server.ts";
3-
import { getChannelPerms } from "./perms.ts";
42

53
export const list = query({
64
args: { organizationId: v.id("organizations") },

apps/convex/src/convex/files.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { v } from "convex/values";
2-
import { mutation, query } from "./_generated/server.ts";
3-
import { getFilePerms } from "./perms.ts";
42

53
// ファイルのMIMEタイプを検証
64
function isValidMimeType(mimeType: string): boolean {

apps/convex/src/convex/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { httpRouter } from "convex/server";
2-
import { auth } from "./auth.ts";
2+
import { auth } from "./auth";
33

44
const http = httpRouter();
55

apps/convex/src/convex/messages.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { getAuthUserId } from "@convex-dev/auth/server";
22
import { v } from "convex/values";
3-
import { mutation, query } from "./_generated/server.ts";
4-
import { getMessagePerms, validateFileAttachments } from "./perms.ts";
53

64
export const list = query({
75
args: { channelId: v.id("channels") },

0 commit comments

Comments
 (0)