From 6a9aca18b5ee02ba54c437055488f66126aad22d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 May 2022 16:38:33 +0200 Subject: [PATCH] Rename ...User... to ...Login... --- contexts/postcard.tsx | 2 +- pages/api/login/index.ts | 4 ++-- utils/{TelegramUserDataClass.ts => TelegramLoginDataClass.ts} | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename utils/{TelegramUserDataClass.ts => TelegramLoginDataClass.ts} (96%) diff --git a/contexts/postcard.tsx b/contexts/postcard.tsx index 5824148..a3f3d7b 100644 --- a/contexts/postcard.tsx +++ b/contexts/postcard.tsx @@ -1,6 +1,6 @@ import { createStateContext } from "../utils/stateContext"; import { StaticImageData } from "next/image"; -import * as Telegram from "../utils/TelegramUserDataClass" +import * as Telegram from "../utils/TelegramLoginDataClass" /** diff --git a/pages/api/login/index.ts b/pages/api/login/index.ts index 4aedcbc..4dcd863 100644 --- a/pages/api/login/index.ts +++ b/pages/api/login/index.ts @@ -1,6 +1,6 @@ import { NextApiRequest, NextApiResponse } from "next" import { client } from "../../../utils/prismaClient" -import { TelegramUserDataClass } from "../../../utils/TelegramUserDataClass" +import { TelegramLoginDataClass } from "../../../utils/TelegramLoginDataClass" import { default as cryptoRandomString } from "crypto-random-string" import { ApiResult } from "../../../types/api" import { FestaLoginData } from "../../../types/user" @@ -40,7 +40,7 @@ async function loginTelegram(req: NextApiRequest, res: NextApiResponse