mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
removed isHiring from Organization. Will be calculated
This commit is contained in:
@ -47,6 +47,11 @@ async function insert(requester, organizationId, title, description, requirement
|
||||
|
||||
async function remove(requester, jobOfferId) {
|
||||
const jobOffer = await findById(jobOfferId);
|
||||
|
||||
if(!jobOffer){
|
||||
return false;
|
||||
}
|
||||
|
||||
const isAdmin = await OrganizationAdmin.isAdmin(requester, jobOffer.organization_id);
|
||||
if (isAdmin) {
|
||||
const deletedRows = await knex('JobOffer')
|
||||
|
@ -21,12 +21,11 @@ const knex = require('../utils/knex_config');
|
||||
* @param {*} isHiring
|
||||
* @returns
|
||||
*/
|
||||
function createOrganization(name, location, description, isHiring) {
|
||||
function createOrganization(name, location, description) {
|
||||
const organization = {
|
||||
name: name,
|
||||
location: location,
|
||||
description: description,
|
||||
is_hiring: isHiring
|
||||
description: description
|
||||
};
|
||||
return organization;
|
||||
}
|
||||
|
Reference in New Issue
Block a user