Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
init prisma pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermayone committed Jul 1, 2024
1 parent 1650eef commit 84710ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import * as dotenv from "dotenv";
import dotenv from "dotenv";
dotenv.config();

import { PrismaClient } from "@prisma/client";
import { App, ExpressReceiver } from "@slack/bolt";
import axios from "axios";
import colors from "colors";
import { CronJob } from "cron";
import express from "express";
import responseTime from "response-time";

import { CronJob } from "cron";
import { indexEndpoint } from "./endpoints";
import { healthEndpoint } from "./endpoints/health";
import { t } from "./lib/templates";
Expand All @@ -25,6 +26,8 @@ const app = new App({
receiver,
});

const prisma = new PrismaClient();

app.event(/.*/, async ({ event, client }) => {
try {
metrics.increment(`slack.event.${event.type}`);
Expand Down

0 comments on commit 84710ed

Please sign in to comment.