@fjell/lib-sequelize 4.4.84 → 4.4.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright 2025 Fjell Project
190
+ Copyright 2026 Tim O'Brien
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
package/dist/index.js CHANGED
@@ -2450,7 +2450,7 @@ var getUpsertOperation = (models, definition, registry) => {
2450
2450
  const isNotFound = error instanceof NotFoundError4 || error?.name === "NotFoundError" || error?.errorInfo?.code === "NOT_FOUND";
2451
2451
  if (isNotFound) {
2452
2452
  logger_default.debug(`[UPSERT] Item not found, creating new item with key: ${stringifyJSON(key)}, errorType: ${error?.name}, errorCode: ${error?.errorInfo?.code}`);
2453
- const createOptions3 = locations ? { locations } : { key };
2453
+ const createOptions3 = locations ? { key, locations } : { key };
2454
2454
  resultItem = await create(item, createOptions3);
2455
2455
  } else {
2456
2456
  logger_default.error(`[UPSERT] Unexpected error during get operation`, {