Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
bug: fix how exception is passed to logger
  • Loading branch information
viet nguyen committed May 7, 2023
1 parent 30cdb59 commit 515f9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const _getUserNickFromMediaDir = async (uuid: string): Promise<string | null> =>
return res?.data?.uid ?? null
} else return null
} catch (e) {
logger.error(`Error fetching /u/${uuid}/uid.json`, e)
logger.error(e, `Error fetching /u/${uuid}/uid.json`)
return null
}
}

/**
* Given a user uuid, locate the media server for the user home dir and their nick name
* Given a user uuid, locate the media server for the user home dir and their nick name. In the future we will store uuid -> username mapping in this DB.
* @param uuid
* @returns user nick name or `null` if not found
*/
Expand Down

0 comments on commit 515f9ba

Please sign in to comment.