Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Jul 7, 2023
1 parent b5f2c77 commit e3ec4b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BackwardCompatibilityService {
.catch((_) => {});
} else {
// see https://github.com/supertokens/supertokens-node/pull/135
passwordResetFunctions_1.createAndSendEmailUsingSupertokensService(
yield passwordResetFunctions_1.createAndSendEmailUsingSupertokensService(
this.appInfo,
user,
input.passwordResetLink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var __importDefault =
Object.defineProperty(exports, "__esModule", { value: true });
const axios_1 = __importDefault(require("axios"));
const logger_1 = require("../../../../../logger");
function defaultCreateAndSendCustomEmail(input) {
function createAndSendEmailUsingSupertokensService(input) {
return __awaiter(this, void 0, void 0, function* () {
if (process.env.TEST_MODE === "testing") {
return;
Expand Down Expand Up @@ -103,7 +103,7 @@ class BackwardCompatibilityService {
constructor(appInfo) {
this.sendEmail = (input) =>
__awaiter(this, void 0, void 0, function* () {
yield defaultCreateAndSendCustomEmail({
yield createAndSendEmailUsingSupertokensService({
appInfo: this.appInfo,
email: input.email,
userInputCode: input.userInputCode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class BackwardCompatibilityService
createAndSendEmailUsingSupertokensService(this.appInfo, user, input.passwordResetLink).catch((_) => {});
} else {
// see https://github.com/supertokens/supertokens-node/pull/135
createAndSendEmailUsingSupertokensService(this.appInfo, user, input.passwordResetLink);
await createAndSendEmailUsingSupertokensService(this.appInfo, user, input.passwordResetLink);
}
} catch (_) {}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import axios, { AxiosError } from "axios";
import { NormalisedAppinfo } from "../../../../../types";
import { logDebugMessage } from "../../../../../logger";

async function defaultCreateAndSendCustomEmail(input: {
async function createAndSendEmailUsingSupertokensService(input: {
appInfo: NormalisedAppinfo;
// Where the message should be delivered.
email: string;
Expand Down Expand Up @@ -96,7 +96,7 @@ export default class BackwardCompatibilityService
}

sendEmail = async (input: TypePasswordlessEmailDeliveryInput & { userContext: any }) => {
await defaultCreateAndSendCustomEmail({
await createAndSendEmailUsingSupertokensService({
appInfo: this.appInfo,
email: input.email,
userInputCode: input.userInputCode,
Expand Down

0 comments on commit e3ec4b3

Please sign in to comment.