mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
Removed function deleteTeamWebsite.
This commit is contained in:
parent
14991df868
commit
a226114374
@ -3,8 +3,8 @@ import { useAuth, useValidate } from 'lib/middleware';
|
||||
import { NextApiRequestQueryBody } from 'lib/types';
|
||||
import { NextApiResponse } from 'next';
|
||||
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||
import { deleteTeamWebsite } from 'queries/admin/teamWebsite';
|
||||
import * as yup from 'yup';
|
||||
import { deleteWebsite } from 'queries/admin/website';
|
||||
|
||||
export interface TeamWebsitesRequestQuery {
|
||||
id: string;
|
||||
@ -32,7 +32,7 @@ export default async (
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
await deleteTeamWebsite(teamId, websiteId);
|
||||
await deleteWebsite(websiteId);
|
||||
|
||||
return ok(res);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user