mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +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 { NextApiRequestQueryBody } from 'lib/types';
|
||||||
import { NextApiResponse } from 'next';
|
import { NextApiResponse } from 'next';
|
||||||
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
||||||
import { deleteTeamWebsite } from 'queries/admin/teamWebsite';
|
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
|
import { deleteWebsite } from 'queries/admin/website';
|
||||||
|
|
||||||
export interface TeamWebsitesRequestQuery {
|
export interface TeamWebsitesRequestQuery {
|
||||||
id: string;
|
id: string;
|
||||||
@ -32,7 +32,7 @@ export default async (
|
|||||||
return unauthorized(res);
|
return unauthorized(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
await deleteTeamWebsite(teamId, websiteId);
|
await deleteWebsite(websiteId);
|
||||||
|
|
||||||
return ok(res);
|
return ok(res);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user