mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
feat(backend): add LocationService
- Add LocationService to manage LocationSource per user - Add UserNotFoundError for generic user-related errors - updateUserLocation throws if source not initialized Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
8
apps/aris-backend/src/lib/error.ts
Normal file
8
apps/aris-backend/src/lib/error.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export class UserNotFoundError extends Error {
|
||||
constructor(
|
||||
public readonly userId: string,
|
||||
message?: string,
|
||||
) {
|
||||
super(message ? `${message}: user not found: ${userId}` : `User not found: ${userId}`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user