mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
chore: assign todos (#7297)
This commit is contained in:
@@ -27,7 +27,7 @@ export async function createApp() {
|
||||
|
||||
app.use(
|
||||
graphqlUploadExpress({
|
||||
// TODO: dynamic limit by quota
|
||||
// TODO(@darksky): dynamic limit by quota maybe?
|
||||
maxFileSize: 100 * 1024 * 1024,
|
||||
maxFiles: 5,
|
||||
})
|
||||
|
||||
@@ -202,7 +202,7 @@ export class AuthController {
|
||||
@Public()
|
||||
@Get('/challenge')
|
||||
async challenge() {
|
||||
// TODO: impl in following PR
|
||||
// TODO(@darksky): impl in following PR
|
||||
return {
|
||||
challenge: randomUUID(),
|
||||
resource: randomUUID(),
|
||||
|
||||
@@ -41,7 +41,6 @@ export class QuotaManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: lazy calc, need to be optimized with cache
|
||||
async getUserUsage(userId: string) {
|
||||
const workspaces = await this.permissions.getOwnedWorkspaces(userId);
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ export class UserResolver {
|
||||
): Promise<typeof UserOrLimitedUser | null> {
|
||||
validators.assertValidEmail(email);
|
||||
|
||||
// TODO: need to limit a user can only get another user witch is in the same workspace
|
||||
// TODO(@forehalo): need to limit a user can only get another user witch is in the same workspace
|
||||
const user = await this.users.findUserWithHashedPasswordByEmail(email);
|
||||
|
||||
// return empty response when user not exists
|
||||
|
||||
@@ -20,6 +20,6 @@ export class UserFeaturesInit1698652531198 {
|
||||
|
||||
// revert the migration
|
||||
static async down(_db: PrismaClient) {
|
||||
// TODO: revert the migration
|
||||
// noop
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,6 @@ export class MailService {
|
||||
};
|
||||
}
|
||||
) {
|
||||
// TODO: use callback url when need support desktop app
|
||||
const buttonUrl = this.url.link(`/invite/${inviteId}`);
|
||||
const workspaceAvatar = invitationInfo.workspace.avatar;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ export class CopilotWorkflowService {
|
||||
return workflow;
|
||||
}
|
||||
|
||||
// todo: get workflow from database
|
||||
// TODO(@darksky): get workflow from database
|
||||
private async getWorkflow(graphName: string): Promise<WorkflowGraph> {
|
||||
const graph = WorkflowGraphs.find(g => g.name === graphName);
|
||||
if (!graph) {
|
||||
|
||||
@@ -74,7 +74,7 @@ export class WorkflowNode {
|
||||
private async evaluateCondition(
|
||||
_condition?: string
|
||||
): Promise<string | undefined> {
|
||||
// todo: evaluate condition to impl decision block
|
||||
// TODO(@darksky): evaluate condition to impl decision block
|
||||
return this.edges[0]?.id;
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ export class S3StorageProvider implements StorageProvider {
|
||||
// metadata
|
||||
ContentType: metadata.contentType,
|
||||
ContentLength: metadata.contentLength,
|
||||
// TODO: Cloudflare doesn't support CRC32, use md5 instead later.
|
||||
// TODO(@forehalo): Cloudflare doesn't support CRC32, use md5 instead later.
|
||||
// ChecksumCRC32: metadata.checksumCRC32,
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user