import { dataDelete, pgClients } from "@opengis/fastify-table/utils.js";

export default async function deleteService({
    params = {}, pg = pgClients.client, user = {},
}, reply) {
    const row = await dataDelete({
        pg,
        id: params.id,
        table: 'gis.services',
        uid: user?.uid,
    });
    return reply.status(200).send(row);
}