chore: clean up code formatting and remove unnecessary whitespace across multiple files for improved readability
This commit is contained in:
@@ -51,7 +51,11 @@ export async function getSessionsByUserId(userId: string) {
|
||||
]);
|
||||
|
||||
// Mark owned sessions and merge with shared
|
||||
const ownedWithRole = owned.map((s) => ({ ...s, isOwner: true as const, role: 'OWNER' as const }));
|
||||
const ownedWithRole = owned.map((s) => ({
|
||||
...s,
|
||||
isOwner: true as const,
|
||||
role: 'OWNER' as const,
|
||||
}));
|
||||
const sharedWithRole = shared.map((s) => ({
|
||||
...s.session,
|
||||
isOwner: false as const,
|
||||
@@ -248,11 +252,7 @@ export async function reorderSwotItems(
|
||||
return prisma.$transaction(updates);
|
||||
}
|
||||
|
||||
export async function moveSwotItem(
|
||||
itemId: string,
|
||||
newCategory: SwotCategory,
|
||||
newOrder: number
|
||||
) {
|
||||
export async function moveSwotItem(itemId: string, newCategory: SwotCategory, newOrder: number) {
|
||||
return prisma.swotItem.update({
|
||||
where: { id: itemId },
|
||||
data: {
|
||||
@@ -464,4 +464,3 @@ export async function getLatestEventTimestamp(sessionId: string) {
|
||||
});
|
||||
return event?.createdAt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user