Skip to content

Commit 7ce0cda

Browse files
committed
fix: run format
1 parent 272b974 commit 7ce0cda

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

front/lib/resources/user_resource.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import { Op } from "sequelize";
1212
import type { Authenticator } from "@app/lib/auth";
1313
import { BaseResource } from "@app/lib/resources/base_resource";
1414
import { MembershipModel } from "@app/lib/resources/storage/models/membership";
15-
import { UserMetadataModel, UserModel } from "@app/lib/resources/storage/models/user";
15+
import {
16+
UserMetadataModel,
17+
UserModel,
18+
} from "@app/lib/resources/storage/models/user";
1619
import type { ReadonlyAttributesType } from "@app/lib/resources/storage/types";
1720

1821
export interface SearchMembersPaginationParams {
@@ -215,20 +218,20 @@ export class UserResource extends BaseResource<UserModel> {
215218
return UserMetadataModel.findOne({
216219
where: {
217220
userId,
218-
key
219-
}
220-
})
221+
key,
222+
},
223+
});
221224
}
222225

223226
static async getAllMetadata(users: ModelId[]) {
224227
return UserMetadataModel.findAll({
225228
where: {
226229
userId: {
227230
[Op.in]: users,
228-
}
231+
},
229232
},
230233
raw: true,
231-
})
234+
});
232235
}
233236

234237
static async setMetadata(userId: ModelId, key: string, value: string) {
@@ -256,8 +259,8 @@ export class UserResource extends BaseResource<UserModel> {
256259
return UserMetadataModel.destroy({
257260
where: {
258261
userId,
259-
}
260-
})
262+
},
263+
});
261264
}
262265

263266
fullName(): string {

front/temporal/relocation/activities/source_region/front/sql.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export async function readCoreEntitiesFromSourceRegion({
6565
});
6666

6767
// Fetch all associated users metadata of the workspace.
68-
const userMetadata = await UserResource.getAllMetadata(memberships.map((m) => m.userId));
68+
const userMetadata = await UserResource.getAllMetadata(
69+
memberships.map((m) => m.userId)
70+
);
6971

7072
const subscriptions = await frontSequelize.query<{ planId: ModelId }>(
7173
'SELECT * FROM subscriptions WHERE "workspaceId" = :workspaceId',

0 commit comments

Comments
 (0)