FIX: A typo bug in an import script (#24553)

This commit is contained in:
Jarek Radosz 2023-11-25 18:10:42 +01:00 committed by GitHub
parent 68960b26be
commit 24532653e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ acceptance("Search - Glimmer - Anonymous", function (needs) {
assert.strictEqual(
query(".search-link .search-item-tag").textContent.trim(),
"important",
"frst option includes tag"
"first option includes tag"
);
await fillIn("#search-term", "smth");

View File

@ -426,7 +426,7 @@ class ImportScripts::FMGP < ImportScripts::Base
created_at = Time.zone.parse(post["createdAt"])
return nil if !@last_date.nil? && created_at > @last_date
return nil if !@frst_date.nil? && created_at < @first_date
return nil if !@first_date.nil? && created_at < @first_date
user_id = user_id_from_imported_user_id(post_author_id)
user_id = @users[post["author"]["id"]].id if user_id.nil?