UserProfileRepository
@adamondo/backend / application/repositories/UserProfileRepository
application/repositories/UserProfileRepository
Interfaces
UserProfileRepository
Defined in: src/application/repositories/UserProfileRepository.ts:3
Methods
findFirst()
findFirst(
where):Promise<{ } |null>
Defined in: src/application/repositories/UserProfileRepository.ts:5
Find the first user matching the given filter criteria.
Parameters
where
UserWhereInput
Returns
Promise<{ } | null>
findByUserId()
findByUserId(
userId):Promise<{ } |null>
Defined in: src/application/repositories/UserProfileRepository.ts:7
Find a user by their unique userId string.
Parameters
userId
string
Returns
Promise<{ } | null>
findUserIdByProfileId()
findUserIdByProfileId(
profileId):Promise<string|undefined>
Defined in: src/application/repositories/UserProfileRepository.ts:9
Legacy: find the userId string for a given numeric profile ID. Returns undefined if not mapped.
Parameters
profileId
number
Returns
Promise<string | undefined>
updatePicture()
updatePicture(
userId,picture):Promise<void>
Defined in: src/application/repositories/UserProfileRepository.ts:11
Update the profile picture URL for the given userId.
Parameters
userId
string
picture
string | null
Returns
Promise<void>