Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Nov 17, 2023
1 parent ebf8663 commit 2007af7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export default function JobsExplorerTableRowItem({ jobData }) {
<div className={styles.column}>{jobData.gdpr_consent || '(empty)'}</div>

<div className={styles.column}>{jobData.render_host || '(empty)'}</div>
<div className={styles.column}>{jobData.render_path.substring(0, 30) || '(empty)'}</div>
<div className={styles.column}>{jobData.render_path?.substring(0, 30) || '(empty)'}</div>
<div className={styles.column}>{jobData.render_format || '(empty)'}</div>

<div className={styles.column}>{jobData.filename.substring(0, 30) || '(empty)'}</div>
<div className={styles.column}>{jobData.filename?.substring(0, 30) || '(empty)'}</div>
</JobsExplorerTableRowContainer>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/jobs/[_id]/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/jobs/[_id]/update/status/[status].js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/jobs/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/users/[_id]/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down
2 changes: 1 addition & 1 deletion manager/pages/api/users/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function handler(req, res) {

try {
const session = await getServerSession(req, res, authOptions);
if (!session) throw new Error('You must be logged in to access this feature.');
if (!session?.user?.email?.length) throw new Error('You must be logged in to access this feature.');
} catch (err) {
console.log(err);
return await res.status(401).json({ message: err.message || 'Could not verify Authentication.' });
Expand Down

0 comments on commit 2007af7

Please sign in to comment.