feat(clubSettings): enhance club settings with myTischtennis integration
- Added new fields for myTischtennis club ID, federation nickname, and auto-fetch rankings in the club settings. - Updated the backend to handle the new settings in the updateClubSettings method. - Implemented automatic ranking updates for clubs based on the new settings in the autoUpdateRatingsService. - Enhanced the frontend to support the new settings, including validation and user interface updates for better user experience.
This commit is contained in:
@@ -60,8 +60,14 @@ export const updateClubSettings = async (req, res) => {
|
||||
try {
|
||||
const { authcode: token } = req.headers;
|
||||
const { clubid } = req.params;
|
||||
const { greetingText, associationMemberNumber } = req.body;
|
||||
const updated = await ClubService.updateClubSettings(token, clubid, { greetingText, associationMemberNumber });
|
||||
const { greetingText, associationMemberNumber, myTischtennisClubId, myTischtennisFedNickname, autoFetchRankings } = req.body;
|
||||
const updated = await ClubService.updateClubSettings(token, clubid, {
|
||||
greetingText,
|
||||
associationMemberNumber,
|
||||
myTischtennisClubId,
|
||||
myTischtennisFedNickname,
|
||||
autoFetchRankings
|
||||
});
|
||||
res.status(200).json(updated);
|
||||
} catch (error) {
|
||||
if (error.message === 'noaccess') {
|
||||
|
||||
Reference in New Issue
Block a user