alex 2024-01-14 23:26:58 +01:00
parent f42f232d8b
commit 4885b7bd47
2 changed files with 6 additions and 2 deletions

View File

@ -58,17 +58,19 @@ User.init(
},
calendar_max_future_booking_days: {
type: DataTypes.INTEGER,
allowNull: false,
// allowNull defaults to true
},
calendar_min_earliest_booking_time: {
type: DataTypes.INTEGER,
allowNull: false,
// allowNull defaults to true
},
calendar_primary_calendar_id: {
type: DataTypes.STRING,
// allowNull defaults to true
},
calendar_using_primary_calendar: {
type: DataTypes.BOOLEAN,
// allowNull defaults to true
},
},
{

View File

@ -33,6 +33,7 @@ router.get(
.accessToken;
const refreshToken = (req.user as Request & { refreshToken?: string })
.refreshToken;
const sub = (req.user as Request & { profile?: any }).profile.json.sub; // google user id
const sessionId = req.cookies["session"];
@ -61,6 +62,7 @@ router.get(
userId: userSession.user_id,
accessToken: accessToken,
refreshToken: refreshToken,
sub: sub,
pass: process.env.TERMIN_PLANNER_AUTHORIZATION_PASSWORD as string,
})
.then((response) => {