fix: updated rewind name

Signed-off-by: Varun Raj <varun@skcript.com>
This commit is contained in:
Varun Raj
2024-12-31 08:40:28 +05:30
parent e4b7580188
commit b70d54eb40
2 changed files with 4 additions and 4 deletions
+1
View File
@@ -115,6 +115,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
.limit(4);
return res.status(200).json({
name: user.name,
numberOfPhotos: numberOfPhotos[0].count,
countriesInYear: countries,
countOfCities: cities.length,
+3 -4
View File
@@ -3,13 +3,12 @@ import { Player } from '@remotion/player';
import { IntroComposition } from '../../remotion/Composition';
import PageLayout from '@/components/layouts/PageLayout';
import Header from '@/components/shared/Header';
import { Button } from '@/components/ui/button';
import { getRewindStats } from '@/handlers/api/common.handler';
import { ASSET_PREVIEW_PATH, ASSET_THUMBNAIL_PATH, PERSON_THUBNAIL_PATH } from '@/config/routes';
import { ASSET_THUMBNAIL_PATH, PERSON_THUBNAIL_PATH } from '@/config/routes';
import Loader from '@/components/ui/loader';
interface IStats {
name: string;
numberOfPhotos: number;
countriesInYear: any[];
countOfCities: number;
@@ -20,7 +19,7 @@ interface IStats {
const getScenes = (stats: IStats) => [
{
message: "Welcome Varun!",
message: `Welcome ${stats.name}!`,
type: "WELCOME",
emoji: "👋",
data: {},