mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 11:29:22 -05:00
fix: create response via api can change created and updated at (#3091)
This commit is contained in:
@@ -204,6 +204,8 @@ export const createResponse = async (responseInput: TResponseInput): Promise<TRe
|
||||
meta,
|
||||
singleUseId,
|
||||
ttc: initialTtc,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
} = responseInput;
|
||||
|
||||
try {
|
||||
@@ -249,6 +251,8 @@ export const createResponse = async (responseInput: TResponseInput): Promise<TRe
|
||||
...(meta && ({ meta } as Prisma.JsonObject)),
|
||||
singleUseId,
|
||||
ttc: ttc,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
};
|
||||
|
||||
const responsePrisma = await prisma.response.create({
|
||||
|
||||
Reference in New Issue
Block a user