Fix seperator issue
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using JobTrackerApi.Data;
|
using JobTrackerApi.Data;
|
||||||
using JobTrackerApi.Models;
|
using JobTrackerApi.Models;
|
||||||
using JobTrackerApi.Services;
|
using JobTrackerApi.Services;
|
||||||
|
using JobTrackerApi.Services.JobImport;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
@@ -732,9 +733,7 @@ namespace JobTrackerApi.Controllers
|
|||||||
|
|
||||||
if (job is null) return NotFound();
|
if (job is null) return NotFound();
|
||||||
|
|
||||||
var sourceText = string.Join("
|
var sourceText = string.Join("\n\n", new[] { job.Description, job.TranslatedDescription, job.Notes }
|
||||||
|
|
||||||
", new[] { job.Description, job.TranslatedDescription, job.Notes }
|
|
||||||
.Where(x => !string.IsNullOrWhiteSpace(x)));
|
.Where(x => !string.IsNullOrWhiteSpace(x)));
|
||||||
if (string.IsNullOrWhiteSpace(sourceText))
|
if (string.IsNullOrWhiteSpace(sourceText))
|
||||||
{
|
{
|
||||||
@@ -1472,3 +1471,5 @@ namespace JobTrackerApi.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user