♻️ oo-connector: use drive_file_id as much as possible in OO flow (#525)

This commit is contained in:
Eric Doughty-Papassideris
2024-09-23 02:56:15 +02:00
parent 77d58d067d
commit ebe8a78c7f
6 changed files with 36 additions and 11 deletions
@@ -41,7 +41,15 @@ export function mountRoutes(app: Application) {
export const makeURLTo = {
rootAbsolute: () => Utils.joinURL([SERVER_ORIGIN, SERVER_PREFIX]),
assets: () => Utils.joinURL([SERVER_PREFIX, 'assets']),
editorAbsolute(params: { token: string; file_id: string; editing_session_key: string; company_id: string; preview: string; office_token: string }) {
editorAbsolute(params: {
token: string;
drive_file_id: string;
file_id: string;
editing_session_key: string;
company_id: string;
preview: string;
office_token: string;
}) {
return Utils.joinURL([SERVER_ORIGIN ?? '', SERVER_PREFIX, 'editor'], params);
},
};