Added token authentication, organization module. Moved server bootstrapping code to server.ts file
This commit is contained in:
@@ -11,3 +11,7 @@ export async function createOrg(input: CreateOrgInput) {
|
||||
|
||||
return org;
|
||||
}
|
||||
|
||||
export async function getOrg(orgId: string) {
|
||||
return await orgModel.findOne({ pid: orgId });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user