|
@@ -79,7 +79,13 @@ export class AuthService {
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
|
this.logger.error('Failed to get startup ad for login', err);
|
|
this.logger.error('Failed to get startup ad for login', err);
|
|
|
}
|
|
}
|
|
|
|
|
+ let startupAdWithoutUrl: Omit<AdPayload, 'adsUrl'> | null = null;
|
|
|
|
|
|
|
|
- return { accessToken, startupAd };
|
|
|
|
|
|
|
+ if (startupAd) {
|
|
|
|
|
+ const { adsUrl, ...rest } = startupAd;
|
|
|
|
|
+ startupAdWithoutUrl = rest;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return { accessToken, startupAd: startupAdWithoutUrl };
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|