mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-07 03:06:40 +00:00
Fix resource new id number
This commit is contained in:
@@ -41,7 +41,7 @@ const listResourcesSchema = z.object({
|
||||
});
|
||||
|
||||
function queryResources(
|
||||
accessibleResourceIds: string[],
|
||||
accessibleResourceIds: number[],
|
||||
siteId?: number,
|
||||
orgId?: string,
|
||||
) {
|
||||
@@ -141,7 +141,7 @@ export async function listResources(
|
||||
// Get the list of resources the user has access to
|
||||
const accessibleResources = await db
|
||||
.select({
|
||||
resourceId: sql<string>`COALESCE(${userResources.resourceId}, ${roleResources.resourceId})`,
|
||||
resourceId: sql<number>`COALESCE(${userResources.resourceId}, ${roleResources.resourceId})`,
|
||||
})
|
||||
.from(userResources)
|
||||
.fullJoin(
|
||||
|
||||
Reference in New Issue
Block a user