Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
martabal committed Jul 14, 2023
1 parent 208fe69 commit 01cdd71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/src/immich/controllers/person.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
PersonService,
PersonUpdateDto,
} from '@app/domain';
import { Body, Controller, Get, Param, Post, Put, Query, StreamableFile } from '@nestjs/common';
import { Body, Controller, Get, Param, Post, Put, StreamableFile } from '@nestjs/common';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { Authenticated, AuthUser } from '../app.guard';
import { UseValidation } from '../app.utils';
Expand Down
6 changes: 3 additions & 3 deletions web/src/routes/(user)/people/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte';
import UserPageLayout from '$lib/components/layouts/user-page-layout-people.svelte';
import { api } from '@api';
import { PersonResponseDto, api } from '@api';
import AccountOff from 'svelte-material-icons/AccountOff.svelte';
import type { PageData } from './$types';
import { onMount } from 'svelte';
Expand All @@ -18,14 +18,14 @@
onMount(() => {
// Save the initial number of "hidden" faces
initialHiddenValues = data.people.map((person) => person.hidden);
initialHiddenValues = data.people.map((person: PersonResponseDto) => person.hidden);
});
const handleDoneClick = async () => {
// Reset the counter before checking changes
changeCounter = 0;
data.people.forEach(async (person, index) => {
data.people.forEach(async (person: PersonResponseDto, index: number) => {
if (person.hidden !== initialHiddenValues[index]) {
changeCounter++;
await api.personApi.updatePerson({
Expand Down

0 comments on commit 01cdd71

Please sign in to comment.