mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
chore: remove legacy import
This commit is contained in:
parent
edcd8f0f98
commit
c909b01767
1 changed files with 0 additions and 12 deletions
|
@ -88,18 +88,6 @@ export const getGuildData = async (config: Config, id: string): Promise<GuildDat
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!guildData) {
|
if (!guildData) {
|
||||||
// It's rare for no guild data to exist while also having a guild.
|
|
||||||
// It's either an actually new guild... or could be imported.
|
|
||||||
// Let's attempt the import...
|
|
||||||
const legacyData = await attemptLegacyImport(config, id);
|
|
||||||
if (legacyData) {
|
|
||||||
return {
|
|
||||||
...empty,
|
|
||||||
...legacyData,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// So we don't try again, let's set the data.
|
|
||||||
await config.kv.guildData.put(id, empty);
|
await config.kv.guildData.put(id, empty);
|
||||||
return empty;
|
return empty;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue