feat(falukant): enhance relationship state handling and director updates
All checks were successful
Deploy to production / deploy (push) Successful in 2m58s
All checks were successful
Deploy to production / deploy (push) Successful in 2m58s
- Updated FalukantService to return user information alongside relationship state for improved context in relationship management. - Modified DirectorInfo component to trigger a refresh when a new director is hired, ensuring up-to-date information. - Added socket event handling for 'directorchanged' in BranchView to manage director updates effectively, enhancing real-time responsiveness in the application.
This commit is contained in:
@@ -3876,7 +3876,7 @@ class FalukantService extends BaseService {
|
||||
throw { status: 400, message: 'relationshipId is required' };
|
||||
}
|
||||
|
||||
const { state } = await this.getOwnedLoverRelationState(hashedUserId, parsedRelationshipId);
|
||||
const { user, state } = await this.getOwnedLoverRelationState(hashedUserId, parsedRelationshipId);
|
||||
const updateData = { acknowledged: true };
|
||||
if (state.loverRole === 'secret_affair' || !state.loverRole) {
|
||||
updateData.loverRole = 'lover';
|
||||
@@ -3897,7 +3897,7 @@ class FalukantService extends BaseService {
|
||||
throw { status: 400, message: 'relationshipId is required' };
|
||||
}
|
||||
|
||||
const { state } = await this.getOwnedLoverRelationState(hashedUserId, parsedRelationshipId);
|
||||
const { user, state } = await this.getOwnedLoverRelationState(hashedUserId, parsedRelationshipId);
|
||||
await state.update({
|
||||
active: false,
|
||||
acknowledged: false
|
||||
|
||||
Reference in New Issue
Block a user