feat(sync): implement lww conflict and tombstone handling
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
import "reflect-metadata";
|
||||
import { ValidationPipe } from "@nestjs/common";
|
||||
import { NestFactory } from "@nestjs/core";
|
||||
import type { NestExpressApplication } from "@nestjs/platform-express";
|
||||
import { AppModule } from "./app.module";
|
||||
|
||||
async function bootstrap(): Promise<void> {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
const app = await NestFactory.create<NestExpressApplication>(AppModule);
|
||||
const bodyLimit = process.env.API_BODY_LIMIT ?? "8mb";
|
||||
|
||||
app.useBodyParser("json", { limit: bodyLimit });
|
||||
app.useBodyParser("urlencoded", {
|
||||
extended: true,
|
||||
limit: bodyLimit
|
||||
});
|
||||
app.enableCors({
|
||||
origin: true,
|
||||
credentials: true
|
||||
|
||||
@@ -39,7 +39,7 @@ export class SyncPushOperationDto {
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(50000)
|
||||
@MaxLength(5000000)
|
||||
payload?: string;
|
||||
|
||||
@Type(() => Number)
|
||||
|
||||
Reference in New Issue
Block a user