Skip to content

Commit 4e6b508

Browse files
committed
fix some errors
1 parent 2070568 commit 4e6b508

File tree

18 files changed

+36
-34
lines changed

18 files changed

+36
-34
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/ResendOTP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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";
4+
import { AUTH_RESEND_KEY } from "./env";
55

66
export const ResendOTP = Resend({
77
id: "resend-otp",

apps/convex/src/convex/ResendOTPPasswordReset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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";
4+
import { AUTH_RESEND_KEY } from "./env";
55

66
export const ResendOTPPasswordReset = Resend({
77
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { v } from "convex/values";
2-
import { mutation, query } from "./_generated/server.ts";
3-
import { getChannelPerms } from "./perms.ts";
2+
import { mutation, query } from "./_generated/server";
3+
import { getChannelPerms } from "./perms";
44

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

apps/convex/src/convex/files.ts

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

55
// ファイルのMIMEタイプを検証
66
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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";
3+
import { mutation, query } from "./_generated/server";
4+
import { getMessagePerms, validateFileAttachments } from "./perms";
55

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

apps/convex/src/convex/organizations.ts

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

66
export const create = mutation({
77
args: {

0 commit comments

Comments
 (0)