1 parent
e4b7580188
commit
b70d54eb40
2 files changed
+4
-4
No files matched your search
@@ -115,6 +115,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
.limit(4);
|
.limit(4);
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
|
name: user.name,
|
||||||
numberOfPhotos: numberOfPhotos[0].count,
|
numberOfPhotos: numberOfPhotos[0].count,
|
||||||
countriesInYear: countries,
|
countriesInYear: countries,
|
||||||
countOfCities: cities.length,
|
countOfCities: cities.length,
|
||||||
|
|||||||
@@ -3,13 +3,12 @@ import { Player } from '@remotion/player';
|
|||||||
|
|
||||||
import { IntroComposition } from '../../remotion/Composition';
|
import { IntroComposition } from '../../remotion/Composition';
|
||||||
import PageLayout from '@/components/layouts/PageLayout';
|
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 { 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';
|
import Loader from '@/components/ui/loader';
|
||||||
|
|
||||||
interface IStats {
|
interface IStats {
|
||||||
|
name: string;
|
||||||
numberOfPhotos: number;
|
numberOfPhotos: number;
|
||||||
countriesInYear: any[];
|
countriesInYear: any[];
|
||||||
countOfCities: number;
|
countOfCities: number;
|
||||||
@@ -20,7 +19,7 @@ interface IStats {
|
|||||||
|
|
||||||
const getScenes = (stats: IStats) => [
|
const getScenes = (stats: IStats) => [
|
||||||
{
|
{
|
||||||
message: "Welcome Varun!",
|
message: `Welcome ${stats.name}!`,
|
||||||
type: "WELCOME",
|
type: "WELCOME",
|
||||||
emoji: "👋",
|
emoji: "👋",
|
||||||
data: {},
|
data: {},
|
||||||
|
|||||||
Reference in new issue
Block a user