mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
feat: Add a lot of stuff
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@nestri/functions",
|
||||
"name": "@nestri/cloud-functions",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
@@ -22,6 +22,7 @@
|
||||
"@aws-sdk/client-s3": "^3.806.0",
|
||||
"@aws-sdk/client-sqs": "^3.806.0",
|
||||
"@nestri/core": "workspace:",
|
||||
"@nestri/cloud-core": "workspace:",
|
||||
"actor-core": "^0.8.0",
|
||||
"hono": "^4.7.8",
|
||||
"hono-openapi": "^0.4.8",
|
||||
|
||||
@@ -3,9 +3,10 @@ import { Resource } from "sst";
|
||||
import { logger } from "hono/logger";
|
||||
import { subjects } from "../subjects";
|
||||
import { handleDiscord } from "./utils";
|
||||
import { Team } from "@nestri/cloud-core/team/index";
|
||||
import { DiscordAdapter } from "./adapters";
|
||||
import { issuer } from "@openauthjs/openauth";
|
||||
import { User } from "@nestri/core/user/index";
|
||||
import { User } from "@nestri/cloud-core/user/index";
|
||||
import { patchLogger } from "../utils/patch-logger";
|
||||
import type { KVNamespace } from "@cloudflare/workers-types";
|
||||
import { CloudflareStorage } from "@openauthjs/openauth/storage/cloudflare";
|
||||
@@ -63,6 +64,7 @@ export default {
|
||||
|
||||
if (user) {
|
||||
try {
|
||||
await Team.fromEmail(email);
|
||||
const matching = await User.fromEmail(user.primary.email);
|
||||
|
||||
//Sign Up
|
||||
|
||||
Reference in New Issue
Block a user