mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
* fix(server): Does not assign lat/lon if they are at 0,0 #2991 * Adds migration file to fix null island rows * Removed down migration * Leave empty down function
This commit is contained in:
parent
079aa13edb
commit
f1b8a7ab54
4 changed files with 44 additions and 4 deletions
|
|
@ -23,6 +23,12 @@ describe('parsing latitude from string input', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('parsing latitude from null input', () => {
|
||||
it('returns null for null input', () => {
|
||||
expect(parseLatitude(null)).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('parsing longitude from string input', () => {
|
||||
it('returns null for invalid inputs', () => {
|
||||
expect(parseLongitude('')).toBeNull();
|
||||
|
|
@ -44,3 +50,9 @@ describe('parsing longitude from string input', () => {
|
|||
expect(parseLongitude('-0.0')).toBeCloseTo(-0.0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('parsing longitude from null input', () => {
|
||||
it('returns null for null input', () => {
|
||||
expect(parseLongitude(null)).toBeNull();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue