We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
@UpdateDateColumn() public updatedAt!: Date;
await TypeOrmUpsert.upsert(English, [{ path: 'foo', phrase: 'hi'}], 'path');
Expected behavior The "updatedAt" column should update.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
"@nest-toolbox/typeorm-upsert": "^1.4.2",
Smartphone (please complete the following information): not applicable
Additional context not applicable
The text was updated successfully, but these errors were encountered:
@Noitidart thank you for pointing this issue. The workaround will be to update the updatedAt with new Date() before inserting.
const newEnglish = {...English, updatedAt:new Date()} await TypeOrmUpsert.upsert(newEnglish, [{ path: 'foo', phrase: 'hi'}], 'path');
Sorry, something went wrong.
Thanks for sharing a workaround! And your fast response!
lupu60
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
await TypeOrmUpsert.upsert(English, [{ path: 'foo', phrase: 'hi'}], 'path');
Expected behavior
The "updatedAt" column should update.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
"@nest-toolbox/typeorm-upsert": "^1.4.2",
Smartphone (please complete the following information):
not applicable
Additional context
not applicable
The text was updated successfully, but these errors were encountered: