🚨 fix: resolve linting type error
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
import { generateUUIDv7 } from "./uuidv7";
|
||||
|
||||
function createManyWithUUID<T extends { id?: string }>(items: T[]): T[] {
|
||||
export const createManyWithUUID = <T extends { id?: string }>(
|
||||
items: T[],
|
||||
): T[] => {
|
||||
return items.map((i) => ({
|
||||
...i,
|
||||
id: i.id ?? generateUUIDv7(),
|
||||
}));
|
||||
}
|
||||
};
|
||||
|
||||
@ -12,7 +12,7 @@ async function bootstrap() {
|
||||
sentryInit();
|
||||
|
||||
console.log("\x1b[1m\x1b[33m🚀 Starting backend services...\x1b[0m");
|
||||
const app = new Elysia()
|
||||
new Elysia()
|
||||
.use(middleware)
|
||||
.use(routes)
|
||||
.listen(process.env.APP_PORT || 3000);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import Elysia, { Context } from "elysia";
|
||||
import Elysia from "elysia";
|
||||
import { returnErrorResponse } from "../../helpers/callback/httpResponse";
|
||||
|
||||
export const appAccessTokenMiddleware = () =>
|
||||
|
||||
Reference in New Issue
Block a user