Skip to content

Commit

Permalink
Merge pull request #1405 from andrew-bierman/fix/notified_etl
Browse files Browse the repository at this point in the history
Fix Import Notified ETL Error
  • Loading branch information
pinocchio-life-like authored Jan 5, 2025
2 parents 87e57e1 + 67697ac commit fa8be11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/controllers/item/importNotifiedETL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export const importNotifiedETL = async (c) => {
const x_amz_token = c.env.X_AMZ_SECURITY_TOKEN;

const userClass = new User();
const users = await userClass.getAdminId();
const user = await userClass.getAdminId();

let ownerId = '';

if (Array.isArray(users) && users.length > 0) {
ownerId = users[0].id;
if (user) {
ownerId = user.id;
console.log('User ID:', ownerId);
} else {
console.log('No users found.');
console.log('No user found.');
}

try {
Expand Down

0 comments on commit fa8be11

Please sign in to comment.