changes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import bcrypt from 'bcrypt';
|
||||
import sql from '$lib/db/db.server';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import { saveAvatar, saveLogo } from '$lib/index.server';
|
||||
import { deleteLogo, saveAvatar, saveLogo } from '$lib/index.server';
|
||||
import {
|
||||
EmploymentType,
|
||||
type User,
|
||||
@@ -295,6 +295,8 @@ export async function editCompany(company: Company): Promise<number> {
|
||||
RETURNING id;
|
||||
`;
|
||||
|
||||
await saveLogo(company);
|
||||
|
||||
return response[0].id;
|
||||
}
|
||||
|
||||
@@ -303,6 +305,8 @@ export async function deleteCompany(id: number): Promise<void> {
|
||||
DELETE FROM companies
|
||||
WHERE id = ${id};
|
||||
`;
|
||||
|
||||
await deleteLogo(<Company>{ id: id });
|
||||
}
|
||||
|
||||
export async function getCompany(id: number): Promise<Company> {
|
||||
|
||||
Reference in New Issue
Block a user