why organizations methods not working when I created it using drizzle-seeds

Actually I'm creating a organization with fake informations in my local. But, when I created it using drizzle-seed and try to insert a new member using auth.api.addMember, I receive a error message "NOT FOUND".

await seed(db, { organization: schema.organization }).refine((f) => ({
        organization: {
            count: 1,
            columns: {
                name: f.default({ defaultValue: 'Nexdoc' }),
                slug: f.default({ defaultValue: 'nexdoc' }),
            },
        },
    }));


await auth.api.addMember({
            body: {
                userId,
                role: [s.role],
                organizationId,
            },
Was this page helpful?